Hi everybody,
I have a strange Firefox related problem (the strange thing is, it WORKS in IE6 & IE7). The problem is this, created a wrapper div with margin-left en right both 5%. Inside the wrapper there are 2 divs, both floating (left and right). The left div width is 240px. The width of the right div is calculated with javascript.
For those who wonder how, look in your javascript manual by;
document.getElementById(divname).offsetWidth and
document.getElementById(divname).style.width
Everything works if the 5% margin turns out to be a round number. But when it is say 68.78px the wrapper still looks like to have a round number of pixels, but firebug tells it has 1237.44px. As soon as this is the case, the right div will always go down under the left div but stays on the right site of the wrapper div. It simply drops down, like it has a top-margin that is the same as the height of the left div. Both divs stay on the same level as the width of the wrapper is a round number of pixels (both in the javascript function and in firebug).
In IE6 and 7 this problem doesn't exist. Both divs always stay at the save level at the top of the wrapper div.:'( Why ?? And why not in Firefox ??
TIA,
Colweb