Le 3 juil. 2012 à 22:36, Alan (Neweb Ireland) a écrit :

> I'm having problems closing the gap on the nav menu for the following site.
> http://newebirl.ie/mnsite/
> 
> I'd like the green bar (nav) to be flush with the image above it and the gray 
> box under it so you don't see any white space.

The white space before the green navigation bar comes from the large image in 
the header. Images are by default inline, and rest on the baseline of text (to 
leave space for descenders).
You can set the image to be display: block to eliminate that gap (but see also 
below).

The gap after the green navigation is caused by the margins on the nested ul 
(#mainNav ul), those are collapsing trough the parent div, causing a gap.

#mainNav ul { margin: 0; } will fix that.

Philippe
--
Philippe Wittenbergh
http://l-c-n.com/






______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to