...

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



canadianjameson
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?

mrhoo
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
head
}
But it's poor practice to base css on the user having javascript.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum