Welcome to Developer's Home Friday, April 18, 2014
Home - DevelopersHome.com

Matching WCSS Cascading Style Sheets to Different User Agents


Preferences - Do not show ads

As discussed earlier in this WCSS tutorial, a major advantage of introducing WCSS cascading style sheet to your mobile Internet application is that it enables you to place the content of your site in XHTML MP files and the presentation information in separate WAP CSS files.

For example, let's say you know that most of the users will visit your site using Nokia's mobile phone browser and Microsoft's Internet Explorer. When people use Nokia's mobile phone browser to visit your site, they view your site in a small screen; when people use Microsoft's Internet Explorer to visit your site, they view your site in a large screen of their PC. You can define a WAP CSS cascading style sheet for the Nokia mobile phone browser and another one for Microsoft Internet Explorer to control the layout of the content, so that your site can look good in both small and large screens. In this way, you just need to manage one version of your site's content, instead of managing one version for the Nokia mobile phone browser and another version for IE. Isn't that convenient?

To match the layout and formatting of your WAP site to different user agents, first you need to know how to detect the user agent. Since user agent detection is a big topic in mobile Internet application development, we will cover the details in a separate article in the future. In this section, we will only give an introduction of user agent detection and several simple examples that help you understand its use.


Page 36 of 39 Previous Page | Next Page
Contents at a Glance
Print this Web Page | | Back to Top
Custom Search

Feedback Form (Expand)

What do you think about this web page?






WCSS Tutorial Table of Contents WCSS Tutorial Contents at a Glance Preferences - Change Color Scheme Preferences - Do Not Show Ads Previous Page Next Page