Welcome to WebmasterWorld Guest from 54.204.74.171

Forum Moderators: not2easy

Message Too Old, No Replies

CSS for smartphones

   
2:35 pm on Apr 30, 2011 (gmt 0)



So i may be way behind the times on this one (still kinda new to the game too) but...

I know i can link an alternate stlye sheet for printing or IE...what about for mobiles like iphone or android... what coding would a person use?

thanks yall!
4:43 pm on May 2, 2011 (gmt 0)

5+ Year Member



In my admittedly very limited experience in mobile web site development, I have found that the CSS really doesn't change for iPhone or Android devices versus what they would be on "regular" browsers.

Avoid using pixel widths for elements (though they are OK for margins and padding for the most part).

Check out this article on Apple's website for iPhone layout hints: [goo.gl...]