html - IE 7/8 rendering Iinline (Floated Divs) as block: widths do not adjust to content? -
I have a block element (DIV) that spreads across the page. It has multiple moving DIVs of variable width. This element can remain on many web pages (anyone can keep it on their website). It is sung properly in FFs on all sites, and the initial DIVs are only detailed in their content. In IE, it sometimes works - but it is not on other sites, and instead it increases every current DIV to the width of her parents, which it should not be. The attachment is an image depicting (red divas container, black DIV is turned on).
(Image is Photoshop, not actual HTML render)
Found! The point is that I was using a single DIV to clear all the elements inside the parent. This problem is in some rendering mode in IE. Instead, I changed it by adding a clearfix class to parents!
Comments
Post a Comment