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

-- 
Zoe M. Gillenwater
Design Services Manager
UNC Highway Safety Research Center
http://www.hsrc.unc.edu


______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: