CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Building for mobile devices (http://www.codingforums.com/forumdisplay.php?f=70)
-   -   Which size to use on mobile website? (http://www.codingforums.com/showthread.php?t=218142)

toplisek 02-11-2011 04:38 PM

Which size to use on mobile website?
 
Which size to use on mobile website?

Is correct
<meta name="" content="width=320;" />

Should we use tables and it will work in in all mobile devices like:
PHP Code:


<table cellpadding="0" cellspacing="0" width="100%">
                    <
tr>

                    <
td class="paragraph1">
                        <
div><img src="spacer.gif" width="2" height="7" alt="" /></div>
                        <
a href=" "><strong>Heading</strong></a>
                        <
div><img src="spacer.gif" width="2" height="7" alt="" /></div>

                    </
td>

                    </
tr>
                </
table


VIPStephan 02-12-2011 03:41 AM

You should use the same semantic code you would use for a regular computer screen website. There is no reason why you would resort to old school table layouts. Just let the layout adapt to the size of the device, i. e. no fixed width. Some browsers do support CSS 3 media queries so you should look into that.

stelly 02-12-2011 07:18 AM

which size to use on mobile web site?
 
Websites using tables for layout will not render well on mobile handsets. The site must use CSS for layout
The site must be coded using either XHTML or XML
Bear in mind different screen sizes of mobile users. The largest screen size available is probably 640 x 480, whereas the average is closer to 120 pixels

toplisek 02-12-2011 08:26 AM

So, using 320 px or 100% is correct average and I can use DT DL without tables?
What about WAP detection?


All times are GMT +1. The time now is 04:48 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.