Manage The Presentation of Your Web Site With Viewport Tags
"As web browsing on mobile devices continues to grow in popularity, it's more important than ever to design mobile web sites that match the look and feel of native applications. One of the features provided by the browser in Windows Phone that helps with this task is programmatic control over the browser layout viewport."
Image courtesy of PCWorld.uol.com In the beginning, mobile surfing meant wap browsers. As devices gained horsepower with ever increasing screen sizes and faster connections, web sites have transitioned from the aforementioned wap browser to mobile versions to desktop view. Users now have an expectation that when they go to a web site on their mobile device, the page will look like it does on their desktop and not be overly compressed. There is also an expectation that the page will re-flow smoothly and format correctly when transitioning from portrait to landscape view. Fortunately for web designers, WP7 OS and its browser allows for programmatic control over the layout viewport. When a page is rendered in the WP7 browser, the default layout viewport width is always 1,024 pixels. The browser then determines the appropriate zoom level to fit the screen. Click read to see how you can use viewport to control the layout viewport width.
|