Lotar
09-20-2007, 02:58 PM
Hi,
got a problem with the following code:
<div style="float: left; width: 100px; height: 10px; background-color: red;"></div><div style="float: left; width: 100px; height: 10px; background-color: green;"></div>
<div style="float: left; clear: left; width: 100px; height: 10px; background-color: yellow;"></div><div style="float: left; width: 100px; height: 10px; background-color: blue;"></div>
That's all, I simplified it to better illustrate my problem. Thing is, that the Firefox renders it in a way I want it, but IE doesn't. Instead of placing the blue div in the second line next to the yellow div (as in FF), it places it in the first line next to the green one. Is there some workaround ? Thanks in advance.
got a problem with the following code:
<div style="float: left; width: 100px; height: 10px; background-color: red;"></div><div style="float: left; width: 100px; height: 10px; background-color: green;"></div>
<div style="float: left; clear: left; width: 100px; height: 10px; background-color: yellow;"></div><div style="float: left; width: 100px; height: 10px; background-color: blue;"></div>
That's all, I simplified it to better illustrate my problem. Thing is, that the Firefox renders it in a way I want it, but IE doesn't. Instead of placing the blue div in the second line next to the yellow div (as in FF), it places it in the first line next to the green one. Is there some workaround ? Thanks in advance.