Previous Message
Next Message

Horizontal navigation with background image & inheritance problem (Driving me mad)

Sent by Jeroen on 14 February 2007 20:08


On 2/14/07, Jeroen [EMAIL-REMOVED]> wrote:

> I think the problem has to do with inheritance, because as you see on
> the test site,
> it works directly under the body statement, but not in the "cnt" DIV.
> If i however add a
> clearfix before (while in the cnt div) it does work. But then margins
> etc are of course reset which is not what i want either.

I finally found the solution although i don't understand WHY this
fixes it. The fix i used
was to add a clear: both; in the container for the menu.

"The clear property sets the sides of an element where other floating
elements are not allowed." However AFAIK i'm not using any floats at
that point. Can anybody please
explain this?

Thanks!

(working: http://jg2.intellit.nl not working: http://jg2.intellit.nl/dev)

-- 
Jeroen
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- 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:

Possibly related: