Wednesday, August 09, 2006

ie6 floates just the background...

I had the problem that the background in a floated environment was not shown in ie 6 and clear:both was not helping much.

Pinpointing the problem down over 1 hour i found the reason in the width of the floated div. It was exact 1 px wider than ie liked it. So if i set it 1 px smaller the background as shown right, if i set it 1 px wider the content is also moved down. (since we are talking about 2 boxes floated, and the right one is the problem).

So it seems like ie is floating the background and the content separately.

I looked also in IE 7 (Vista Beta) and the problem is there also... and i found what seems like the peekaboo bug??..

Since i am really in a hurry and don't have time i have to postpoint writing a testcase for it.