I use the javascript property screen.width to know which CSS to use… But with Internet explorer (both 7 and 8, I didn’t tried on 9), the returned value is the one of my main screen (which is not the one I use…).
Does anyone have a solution ? Maybe another property ? (I also tried with screen.availWidth, it didn’t worked)
Nicolas
Maybe you could use the
window.innerWidthproperty? Only downside is, it looks at thewindow, not thescreen, which may not be what you want..