Results 1 to 4 of 4

Thread: Creating websites that are mobile friendly

  1. #1
    Orca Whisperer N1LAF's Avatar
    Join Date
    Jul 2007
    Location
    Ledyard, CT
    Posts
    13,937

    Creating websites that are mobile friendly

    Since I have been tooling around with this new iPod, I wanted to create Reference pages and place on this device. My earlier works have been disappointing because the website output is so small, and constantly have to resize the screen manually to read. Today I was going to do something about it, and now I will share my discovery with everyone here, who may want to do the same thing.

    Works well with my iPod and desktop, and will be trying it on my cell phone.

    Sample mobile page: http://www.hamisland.net/css_reference.html

    The code that makes this work well is this:

    Code:
    <?xml version="1.0"?>
    <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
            "http://www.wapforum.org/DTD/xhtml-mobile10.dtd" >
    
    <html xmlns="http://www.w3.org/1999/xhtml"><head>
    <title>CSS Reference</title>
    ...."rest of html code"....
    Font sizes I have been using is 14, 16, and 18 pt

  2. #2
    Orca Whisperer
    Join Date
    Oct 2009
    Location
    Buffalo, NY
    Posts
    22,593

    Re: Creating websites that are mobile friendly

    IMHO, instead of specifying px, I'd use em. Let's the user control their experience better. But, just a preference for me.
    Big Giant Meteor 2020 - We need to make Earth Great Again

    http://www.coreyreichle.com

  3. #3
    Orca Whisperer N1LAF's Avatar
    Join Date
    Jul 2007
    Location
    Ledyard, CT
    Posts
    13,937

    Re: Creating websites that are mobile friendly

    Quote Originally Posted by KC2UGV
    IMHO, instead of specifying px, I'd use em. Let's the user control their experience better. But, just a preference for me.
    Good advice, I haven't dealt with em, so I took the path of least resistance. But I will look at em in the near future.

  4. #4
    Snarky Dick ka8ncr's Avatar
    Join Date
    May 2008
    Posts
    2,486

    Re: Creating websites that are mobile friendly

    Quote Originally Posted by KC2UGV
    IMHO, instead of specifying px, I'd use em. Let's the user control their experience better. But, just a preference for me.
    It will save you from having to redo a lot of work covering for the behavioral tics of various mobile browsers. For everything else, the rule I use is that if the page can be scaled, use em.

    The other recommendation is that if you sniff for a mobile browser and throw them to the mobile version, you must provide a way for them to get to the normal site easily and let them stay there.

Similar Threads

  1. "Windows is creating virtual memory"
    By kc7jty in forum Tech Talk - Computers, Gadgets, Home Theater
    Replies: 9
    Last Post: 10-21-2009, 04:05 PM

Posting Permissions

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