I have two divs that make up my header, #title
and #header
. They are inside #totalTop
. They should be flush against the top, and they should be flush against each other. Here's how it looks like:
http://i53.tinypic.com/2ykj0b7.jpgy
Here's the CSS code for the relevant part:
#totalTop {
text-align: center;
}
#title {
background-image: url(../img/TopBannerGradientOrange.png);
border-bottom-color: #FFF;
text-align: center;
border-bottom-style: solid;
border-bottom-width: 3px;
background: url(../img/TopBannerGradientOrange.png);
height: 150px;
width: 20%;
font-size: 25px;
display: inline-block;
}
#header {
border-bottom-color: #FFF;
border-bottom-style: solid;
border-bottom-width: 3px;
background: repeat-x;
background: url(../img/TopBannerGradientOrange.png);
width: 60%;
text-align: center;
height: 150px;
display: inline-block;
margin-top: 0;
}
How can I get them to fit together? I already have reset.css in my full stylesheet.
Edit:
Added the vertical-align: top;
, so now it only looks like this sort of gap between elements. It's about 3-4px and with Chrome's Inspect Tool I can't figure out whether it is #title
or #header
that's causing the problem: