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
    Jun 2010
    Posts
    293
    Thanks
    63
    Thanked 8 Times in 8 Posts

    CSS for mobile devices?

    I am familiar with the @screen and @print directives, but what is the best directive to use for mobile and handheld devices?

  • #2
    Registered User
    Join Date
    Jun 2011
    Posts
    1,063
    Thanks
    12
    Thanked 241 Times in 240 Posts
    Code:
    @media handheld {
     {}
    }
    http://www.w3.org/TR/CSS2/media.html

    I would have to say that fluid websites using % work the best on handhelds

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,695
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    Unfortunately the “handheld” media type is unreliable these days because more and more devices – in an effort to bring the “real internet” to mobile devices – only react to the “screen” media type. Fortunately, though, they all have modern browsers that support CSS media queries.

  • #4
    Regular Coder
    Join Date
    Jul 2011
    Location
    India
    Posts
    496
    Thanks
    3
    Thanked 57 Times in 56 Posts
    Quote Originally Posted by VIPStephan View Post
    Unfortunately the “handheld” media type is unreliable these days because more and more devices – in an effort to bring the “real internet” to mobile devices – only react to the “screen” media type. Fortunately, though, they all have modern browsers that support CSS media queries.

    Means we have keep in mind only screen resolution, not device type.... Am I right ???


  •  

    Posting Permissions

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