Okay, I'm sure this is rookie cross-browser stuff but I can't seem to turn up an answer to the problem so I'm hoping someone here can help!
Now, I've styled the h2s thus...
And the containing sidebar div thus...
All is well in pretty much every browser - the H2 with it's backdrop sits snugly at the top on the sidebar DIV. However, in IE, there is a large gap above it which I can't work out how to resolve.
This is driving me slightly nuts - can anyone suggest a reason for this?
HTML:
<div id="sidebar">
<h2>Navigation</h2>
Some links go here
</div>
HTML:
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 1.2em;
font-weight: normal;
padding-top: 4px;
padding-right: 0px;
padding-bottom: 5px;
padding-left: 5px;
width: 215px;
float: left;
display: block;
height: 25px;
background-image: url(siteimages/backdrop-side-h2.gif);
background-repeat: repeat-x;
background-position: left bottom;
margin: 0px;
HTML:
sidebar1 {
float: left;
width: 220px;
padding: 0px;
margin: 0px;
}
This is driving me slightly nuts - can anyone suggest a reason for this?