Yet another IE CSS bug

Posted Thursday, May 12, 2005 at 20h06 in Computers

When I thought I had seen all the CSS bugs in IE and had workarounds figured out for all of them, another IE CSS bug rears its ugly head. If you have div A with width=50% inside parent div B, div A’s width is, as you expect, 50% of div B’s width. In IE, however, if you float div A, div A’s width suddenly becomes 50% of the entire window’s width! This is not supposed to happen, as any standards compliant browser will demonstrate. Looks like it’s back to using tables for layouts, and that just sucks.