Associate
- Joined
- 11 Jun 2009
- Posts
- 1,248
Hi,
Having a bit of a problem here. Basically I have a horizontal menu, evenly spaced with CSS. That's fine. The only problem is, there is too much space underneath it.
There's too much space between the links and the orange image below them.
Here's my HTML:
CSS:
The site is using the reset CSS found at http://meyerweb.com/eric/tools/css/reset/ so all margins/padding should default to 0 (firebug confirms this, it just looks like <ul class="navbar"> is taller than what's inside it for some reason).
Any ideas?
It's not a margin on the image below as far as I can tell.
Changing font-size, font-weight, line-spacing does nothing.
EDIT: Commenting out <li class="filler"></li> fixes the vertical space but screws up the horizontal spacing. Grr.
EDIT2: Link to simplified version of the site: http://robertcrabb.co.uk/test/index.html
Having a bit of a problem here. Basically I have a horizontal menu, evenly spaced with CSS. That's fine. The only problem is, there is too much space underneath it.
There's too much space between the links and the orange image below them.
Here's my HTML:
Code:
<ul class="navbar"> <!--Nav Bar-->
<li><a href="./index.html">HOME</a></li>
<li><a href="./about.html">ABOUT</a></li>
<li><a href="./services.html">SERVICES</a></li>
<li><a href="./order.html">ORDER</a></li>
<li><a href="./contact.html">CONTACT</a></li>
<li class="filler"></li>
</ul>
CSS:
Code:
.navbar {
text-align:justify;
width: 770px;
padding: 5px 40px 0;
}
.navbar li {
display: inline-block;
font-size: 1.2em;
font-weight: 600;
}
.navbar .filler {
width:100%;
display: inline-block;
height:0;
}
The site is using the reset CSS found at http://meyerweb.com/eric/tools/css/reset/ so all margins/padding should default to 0 (firebug confirms this, it just looks like <ul class="navbar"> is taller than what's inside it for some reason).
Any ideas?
It's not a margin on the image below as far as I can tell.
Changing font-size, font-weight, line-spacing does nothing.
EDIT: Commenting out <li class="filler"></li> fixes the vertical space but screws up the horizontal spacing. Grr.
EDIT2: Link to simplified version of the site: http://robertcrabb.co.uk/test/index.html
Last edited: