Tables are supported
on most mobile browsers, but nested tables may not work. On the Web, CSS is
preferred for designing page layouts. Fortunately, XHTML MP-compliant browsers
too support Wireless CSS (WCSS), a subset of CSS 2.1. WCSS is very effective in
controlling the layout of the site and should be used to flow the page in blocks and
decorate elements. If you currently use CSS to style your documents, WCSS will
not be a problem at all??”it's just the same actually! We will talk about some special
styles useful in mobile development as we build the POTR application. If you
want to learn more about WCSS, Developers' Home has an excellent tutorial at:
http://www.developershome.com/wap/wcss/.
You can style your current website to render well on a mobile device using CSS. You
may hide certain portions with display: none or size images and text to fit well on
a mobile device. However, keep in mind that even when you scale images or hide
content blocks with CSS, they still download to the mobile browser before CSS is
applied. This means your users may have to wait longer for the page to render and
pay higher bandwidth charges.
Pages:
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82