I have a header image that is suppose to have a 2px solid black border around it, right? Everything looks great in Firefox and Chrome, but IE9 will includes an extra space in between the border and the image. I’ve tried to get rid of it by changing the margins and padding with no luck. Can anybody lend a hand?
Here’s the relevant markup in HTML:
<body>
<header>
<img src=”contactbenjamin.jpg” alt=”Contact Benjamin Heading.”/>
</header>
Here’s the relevant CSS:
header img {
height: 190px;
width: 1000px;
border-top-width: 2px;
border-top-style: solid;
border-top-color: black;
border-bottom-width: 2px;
border-bottom-style: solid;
border-bottom-color: black;
padding-top: 0;
padding-bottom: 0;
}
header {
width: 1000px;
left: 172.5px;
}
Take a look at the source code of the actual page [URL=”http://www.benjamincook1.com/Contact%20Ben.html”]here
Any help with this will be much appreciated.
Thanks.