Click here to Skip to main content
15,896,207 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have to make scrollable view of webpage for ipad/iphone.
How to do this.

Thanks
Posted

1 solution

A Web page is always scrollable unless you use absolute or fixed positioning. So you would simply recommend not using such positioning if you want to show your application on devices of very different screen sizes.

See:
http://webdesign.about.com/od/advancedcss/a/aa061307.htm[^],
http://www.w3schools.com/css/css_positioning.asp[^].

There are a number of CSS methods helping to stretch your components to occupy the width of a Web browser screen. A basic hint: use "width: 100%".

One interesting technique is using absolute positioning inside relative positioning: http://css-tricks.com/791-absolute-positioning-inside-relative-positioning/[^]. Still, use it with great care.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900