I have two DIV elements with style="float:left;". I set the margin, width, etc. based on the size of the window. When the window is smaller I lower the width and margin CSS attribute values of the DIVs to make them appear next to each other (not below).
This looks nice in Firefox, however in Chrome and Opera the DIVs jump below each other for a moment before my JavaScript runs. After a moment the screen looks nice again.
The question: Is there a way to catch a window.onresize event and manipulate CSS before the effects of the resize event are visible on the browser?