I have a site that I am developing, that uses a grid system In IE7, when the window is resized, one column "pops" down below the other. This is not a massive issue, but as there is no margin at the top/left, the layout is fairly unreadable.
So how can I apply a class to a
<div>
only when the window (viewport?) is resized to below a certain width?
eg
width > 500px = class="smallerwindow"
I then can style that class appropriately.
I have jQuery, modernizr etc.
Thanks,
Harley