[web] How do I set my website to load a mobile stylesheet if there is a mobile header?

Started by
0 comments, last by Sander 17 years, 1 month ago
Hey, I've been looking this up online, but can't really find it.. How do I load up a specific style sheet depending on if the user is mobile? Thanks a lot for the all the help the last few weeks guys, and here's my site so far if you guys want to check it out (I bought a domain, but i'm still waiting for it to get registered). I'm looking for feedback, so let er rip. Site
Advertisement
You use the "media" directive to include multiple stylesheets. One for screen, one for handheld, etcetera. The device will load whatever matches best. See http://www.w3.org/TR/REC-CSS2/media.html.

<hr />
Sander Marechal<small>[Lone Wolves][Hearts for GNOME][E-mail][Forum FAQ]</small>

This topic is closed to new replies.

Advertisement