I have been trying to showcase a logo (PNG created in Paint.NET) on my website (XHTML 1.0 Transitional), using the following code:
<body>
<div class="header">
<div class="logo">
<img src="logo.png" />
</div>
<!-- etc. -->
The CSS for .header
is set up like this:
.header {
background-color: Black;
color: White;
margin-left: -3em;
padding-top: 12px;
padding-left: 2em;
padding-bottom: 12px;
font-size: 1.4em;
}
.header .logo {
float: right;
}
The logo consists of white-on-black with some additional colors.
While IE8 and Google Chrome show the image correctly, IE7 does not display it at all. What could be going wrong here?
Personally, I'm not concerned about compatibility with IE6.