I am experiencing a space between the header and nav of this site. I have tried adding overflow: hidden in several places and cannot get it to come together. http://foxdenwebsolutions.com/wingsofhope/index.html. What am I missing? Thanks.
| SitePoint Sponsor |


I am experiencing a space between the header and nav of this site. I have tried adding overflow: hidden in several places and cannot get it to come together. http://foxdenwebsolutions.com/wingsofhope/index.html. What am I missing? Thanks.

The page doesn't seem to be loading.
Visit The Blog | Follow On Twitter
301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
Can be hosted on and utilize your own domain


Seems my business site is down. I moved it to my jewelry site for now. http://foxdencreations.com/wingsofhope/index.html.

Try adding {margin-bottom:0px} to your h1 element.


thank you that worked!

Excellent! Thanks for the feedback.
Have you tested by removeing the <h1> inside the <header>![]()


That I haven't tried....I will see if that changes anything.


Do you mean the white line between the header and nav? That is part of the background image. Or is the issue fixed now?
Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form
Try your hand at the new JavaScript Challenge!
If you don't like getting your feet stuck in a bog, avoid Twitter BootsTrap.
it's the h1 css problem. you should add padding:0; margin: 0; in h1{}. and change
#navcontainer ul {
background-image: url("../images/nav.png");
background-repeat: no-repeat;
float: left;
font-family: Calibri,arial,helvetica;
font-size: 26px;
height: 89px;
padding-left: 35px;
padding-right: 50px;
padding-top: 1px; to padding-top: 0;
width: 1143px;
ADD margin: 0;
}


The issue is fixed. Thank you everyone for your input.


Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form
Try your hand at the new JavaScript Challenge!
If you don't like getting your feet stuck in a bog, avoid Twitter BootsTrap.

cgafox, there are actually a couple of other small problems with the page, if you're interested.
You may have noticed that the page is slightly off center in the browser window. There is an unnecessary width assignment causing that which can be deleted. That width plus the padding throws the total width off.
(width:1143 has already been assigned in div.container.)Code:#navcontainer ul {width:1143px;}
In addition, you can delete the following <h1> width as it is unnecessary, too (albeit harmless).
There is also a 1px space beneath beneath the navcontainer. It's most noticable at the edges of the images and the background is barely visible across the page. That can be eliminated by deletingCode:h1 {width:1143px;}
If you want the additional padding above the ul, it would probably be easier if the background image and container height were assigned to #navcontainer first, then #navcontainer ul assigned separately.Code:#navcontainer ul {padding-top:1px;}
Last edited by ronpat; Oct 12, 2012 at 20:51. Reason: added last sentence


Thanks ronpat, your suggestions look good.
Bookmarks