View Full Version : is it simple to apply alternate CSS style IF resolution > X,Y?

12-06-2006, 06:00 PM
hey all,

If this is overly complicated then forget it, but does anyone have a script whereby IF the users resolution is > a particular setting (say 1024x768), then apply THIS css to THESE objects?

12-07-2006, 06:04 AM
if(screen.width>1024 && screen.height>768){
either document.write the link element in the head while it is loading
or after onload use createElement('link') and append it to the
But it's poor practice to base css on the user having javascript.