Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    May 2006
    Posts
    216
    Thanks
    4
    Thanked 0 Times in 0 Posts

    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
    Last edited by toplisek; 02-11-2011 at 04:46 PM.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,701
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    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.

  • #3
    New to the CF scene
    Join Date
    Feb 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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
    Last edited by VIPStephan; 02-12-2011 at 12:06 PM. Reason: removed spam signature

  • #4
    Regular Coder
    Join Date
    May 2006
    Posts
    216
    Thanks
    4
    Thanked 0 Times in 0 Posts
    So, using 320 px or 100% is correct average and I can use DT DL without tables?
    What about WAP detection?
    Last edited by toplisek; 02-12-2011 at 08:32 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •