1
OK, here's a question for all the CSS gurus out there.
I'm trying to make a theme that chooses a style sheet based on screen resolution. I found a little javascript that could be adapted to choose the correct resolution, but how will it know if it's a style.css or styleNN.css file?
Quote:
<script language="Javascript">
if (screen.width < 1024) {
document.write('<link rel=stylesheet type="text/css" href="lowFonts.css">');
}
if (screen.width >= 1024 && screen.width < 1280) {
document.write('<link rel=stylesheet type="text/css" href="mediumFonts.css">');
}
if (screen.width >= 1280) {
document.write('<link rel=stylesheet type="text/css" href="highFonts.css">');
}
</script>
The above chooses a particular style sheet for different size fonts, but it should work ok for what I have in mind :)
Any ideas?