Log in

View Full Version : IE displaying skin wrongly


Snetty
10-15-2005, 01:06 PM
Lo all, I made a skin for a client's site a while back and i've just noticed a minor problem in IE. The site can be found at www.thecarshowcase.com.

If you view it in FF then you'll see that the logo/banner at the top displays with no problems. However, in IE it shows a white line in the background.

Here is the code. You'll see that the banner is made up of a large image as the background and an identical but cropped image as the link.

<!-- logo -->
<a name="top"></a>

<div id="logo"><a href="http://www.thecarshowcase.com/forums/" style="border: none;"><img src="images/main/logo1link.png" style="border: none;" alt="The Car Showcase" /></a>
</div>
<!-- /logo -->

div#logo {
height: 174px;
width: 100%;
background: url(images/main/logo1.png) no-repeat left;
border: none;
margin: 0px;
padding: 0px;
}

Can anyone see where my problem might be?

Zachery
10-15-2005, 04:26 PM
You have a hard return before your ending </div> tag. try removing it.

Snetty
10-15-2005, 11:22 PM
you beauty zach... job done. Any idea why that would cause the problem? Just for my curiosity.

Zachery
10-16-2005, 03:29 PM
you beauty zach... job done. Any idea why that would cause the problem? Just for my curiosity.

IE sometimes renders hard returns inside of tags as space.. which they are realisticly.