Hello,
I'm new here, but I hope you will be kind enough to help me deal with a problem. I'm working on a site that dosen't show right in IE 8, but it does in google chrome and firefox.
Here is an image that shows the difference:
Here is the html:
And here is the CCS:
Could anyone help me, so that menu bar is also correct in IE?
Thanks in advance
I'm new here, but I hope you will be kind enough to help me deal with a problem. I'm working on a site that dosen't show right in IE 8, but it does in google chrome and firefox.
Here is an image that shows the difference:
Here is the html:
<!doctype html public "-//w3c//dtd html 3.2 final//en">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Test</title>
<link href="style.css" media="screen" rel="stylesheet"/>
</head>
<body>
<div id='wrapper'>
<!-- banner -->
<div id='banner'>
<div id='logo'><img src="images/logo.png"/></div>
<div id='coffee'><img src="images/coffee.png"/></div>
<div style="clear:both"></div>
<!-- menu -->
<div id='menu'>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About us</a></li>
<li><a href="#">Menu</a></li>
<li><a href="#">Specials</a></li>
<li><a href="#">Contacts</a></li>
</ul>
</div>
</div>
And here is the CCS:
@charset "UTF-8";
/* CSS Document */
body{
background:url(images/BG.png) top left repeat;
margin:0px;
padding:0px;
font:Verdana, Arial, Helvetica, sans-serif;
text-align:center
}
#wrapper{
width:865px;
background:#FFFFFF;
margin:0px auto;
padding:0px;
font-size:14px;
text-align:left
}
#banner{
background:#c6e549 url(images/header_bg.jpg) top left no-repeat;
width:865px;
height:186px;
}
#logo{
float:left;
clear:none;
margin-left:25px;
margin-top:0px;
}
#coffee{
float:right;
clear:none;
margin-right:3px;
}
#menu{
width:700px;
height:38px;
margin-top:-59px;
margin-left:6px;
}
#menu ul{
list-style:none;
margin:0px;
padding:0px;
}
#menu ul li{
margin-left:1px;
float:left;
display: inline;
}
#menu ul li a{
display:block;
text-decoration:none;
background:url(images/menu.png) top left no-repeat;
width:120px;
height:38px;
font-size:13px;
color:#eae1df;
text-align:center;
cursorointer;
padding-top:6px;
}
#menu ul li a:hover{
background:url(images/menu-selected.png) top left no-repeat;
width:120px;
height:38px;
color:#C6E549;
}
#left-content{
float:left;
clear:none;
width:700px;
margin-left:15px;
}
Could anyone help me, so that menu bar is also correct in IE?
Thanks in advance