I currently have the following in my HTML document.
<link REL=StyleSheet HREF="/stylesheets/home.css" TYPE="text/css" MEDIA=screen>
<link REL=StyleSheet HREF="/stylesheets/homedark.css" TYPE="text/css" MEDIA=handheld>
However, nothing changes on a handheld device (my Android phone). Is there something I’m doing wrong, or is it just not this simple?
You will need to use more advanced media queries, such as those that target
screen sizeSo something more like
Inside your stylesheet, it would be something like this
http://www.w3.org/TR/css3-mediaqueries/
Simple JS device detection might be helpful:
An even better thing to do is use some sort of combo… media queries & device / feature detection.
This is a good overview: http://www.csskarma.com/presentations/cssla/slides/mobile_media_touch.pdf (WARNING: pdf file)