Previous Message
Next Message

h2 with border/floating div right

Sent by Zoe M. Gillenwater on 24 March 2006 12:12

Jim Wright wrote:
> I have a site where I am using a border on a H2, which is used as the
> heading in the main content area of the page.  On some pages, I am
> wanting to put a box of nav links on the right side of the main
> content area, with the content wrapping around it.  Problem is that
> the border on the H2 extends under the floated div.  What is the best
> way to avoid that?  It doesn't extend under the floated div in IE,
> only in FF/NS.

This is correct behavior. Floats only displace inline content, so the 
heading is still sitting underneath the float. Thus, its border appears 
under the float.  There are ways to work around this, but it depends on 
the layout. Can you post a link to the page?


Zoe M. Gillenwater
Design Services Manager
UNC Highway Safety Research Center

css-discuss [EMAIL-REMOVED]]
IE7b2 testing hub --
List wiki/FAQ --
Supported by --
Previous Message
Next Message

Message thread: