italic font-style causes oversized divs in IE6

03:15 PM by Andrea Hildebrand

Filed under Css Hacks

Last modified Thursday July 8th, 2010

Block elements containing italic text are displayed expanded in IE6.

As a result, two parallel floating containers can not be displayed side by side in case the specified overall width has been exceeded.

As a solution, the following extra style has to be added to the block element containing the italic font-style:

.italic-container{
zoom:1;
overflow: visible
}

 

Related Articles

                                                          Leave a Comment