No replies
freshtc
Offline
newbie
Connecticut
Last seen: 12 years 7 weeks ago
Connecticut
Joined: 2009-08-07
Posts: 1
Points: 0

FIX:
Unneeded height tag in: .menu ul li a { causing it to break in ie.

The page works great in Firefox, but in ie, my menu disappears and is very strange. You only see a small transparent box when you mouse over the area where the menu is supposed to be.

Here is the CSS

/*
	Common Document Colors
	Background: #0c0c0c
	Text: #ffffff
	Links: #0066cc
	Headers: #0066cc
*/
 
body {
	background: url(images/bg.jpg) #0c0c0c no-repeat top center;
	margin: 0;
	padding: 0;
	text-align: center;
}
img {border:none;}
 
#header {
	width: 960px;
	height: 165px;
	margin: auto;
	padding: 0;
	overflow:visible;
	z-index: 1;
}
 
.logo {
	float: left;
	height: 112px;
	width: 260px;
	margin: 0px 0 0 -8;
	padding-top: 25px;
}
 
#topright {
	width: 650px;
	height: 126px;
	float: right;
	overflow:  hidden;
	z-index: 2;
	position: relative;
}
 
.menu {
	position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
}
.menu ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
 
}
 
.menu ul li {
	display: block;
	padding: 90px 0 15px 0;
	float: left;
}
 
.menu ul li a {
	font-family: Verdana, Verdana, Geneva, sans-serif;
	text-decoration: none;
	color: #fff;
	padding: 90px 20px 15px 20px;
	margin-right: 1px;
	font-size: 14px;
	height: 25px
}
 
.menu ul li a:hover {
	background: url(images/menu_hover.png);
    color: #0066cc;
    border-bottom: 2px solid #0066cc;
}
 
.search {
	position: absolute;
    top: 15px;
    right: 15px;
    z-index: 4;
 
	width: 271px;
	height: 30px;
	background: url(images/search.png) top right no-repeat;
}
 
#clear {
	clear: right;
}
 
#featured {
	margin: 0 auto 0 auto;
	height: 320px;
	width: 960px;
	background: url(images/featured_bg.png) no-repeat top center;
	padding: 14px 14px 14px 14px;
}
 
#content {
	width: 960px;
	height: 500px;
	margin: 25px auto 0 auto;
	padding: 0;
 
	background-color: #000;
	text-align: left;
}

And the HTML

<html>
	<head>
		<title>High Fidelity Autosport - Newington, CT</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="stylesheet" href="style.css" type="text/css" media="screen" />
 
	</head>
	<body>
 
		<div id="header">
			<div class="logo">
				<a href="index.php"><img src="images/logo.png" alt="High Fidelity Auto Sport Logo" title="High Fidelity Auto Sport" id="logo" width="260px" height="112px" /></a>
			</div>
 
 
 
			<div id="topright">
 
			<div class="search"></div>
 
			<div class="menu">
				<ul>
					<li><a href="#">HOME</a></li>
					<li><a href="#">SERVICES</a></li>
					<li><a href="#">PRODUCTS</a></li>
					<li><a href="#">GALLERY</a></li>
					<li><a href="#">CONTACT US</a></li>
				</ul>
			</div>
 
			</div>
 
			</div>
 
			<div id="clear" style="clear:both;"></div>
 
		</div>
 
		<div id="featured">
			<img src="images/featured_1.jpg" height="293px" width="932px">
		</div>
 
		<div id="content">
				Content Area
		</div>
 
 
	</body>
</html>

Any help would be greatly appreciated. I've been struggling with this for hours now with no luck.