Jazman
11-26-2008, 09:03 PM
I'm a newbie with webdesign. Saw this nice navbar from Dynamic Drive library Solid Block Menu (http://www.dynamicdrive.com/style/csslibrary/category/C1/P14/) It works wonderfully in latest Firefox but the black/grey background disappears in IE6. BUT the red mouse-over works in IE6. I did put the css in the external sheet for my site. Other than that I didn't change much.
Here's the HTML and CSS. Hope someone can help me here...I know very little about fixing Ie6 bugs but maybe its my code setup. Thanks
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/Strict.dtd">
<html>
<head>
<title>Fisher's Home Improvements</title>
<link rel="stylesheet" type="text/css" href="fisher.css" />
</head>
<body>
<div id="container">
<div id="header">
<img src="../images/test_logo_copy1.gif" width="145px" />
</div>
<div id="navbar">
<ul class="solidblockmenu">
<li><a href="http://www.dynamicdrive.com/">Home</a></li>
<li><a href="http://www.dynamicdrive.com/style/">About Us</a></li>
<li><a href="http://www.dynamicdrive.com/forums/">Gallery</a></li>
<li><a href="http://tools.dynamicdrive.com">Suppliers</a></li>
<li><a href="http://www.javascriptkit.com/">Subcontractors</a></li>
<li><a href="http://www.cssdrive.com" style="border: none">Contact</a></li>
</ul>
</div>
:eek::eek: CSS :eek::eek:
body { background-color: #ffffff;
margin: 0;
padding: 0;
}
#container {
padding: 0;
margin: auto;
width: 810px;
min-height: 1000px;
border: solid 1px #000000;
background: #ffffff url(../images/background_gradient.jpg) repeat-x;
}
#header {
padding: 0;
margin: auto;
width: 800px;
height: 100px;
margin-top: 5px;
margin-bottom: 5px;
}
#navbar {
padding: 0;
width: 809px;
height: 60px;
}
.solidblockmenu {
margin: 0;
padding: 0;
font: bold 14px Arial;
width: 100%;
overflow: hidden;
margin-bottom: 1em;
border: 1px solid #625e00;
background: black url(../images/navdefault.gif)center repeat-x;
}
.solidblockmenu li{
display: inline;
}
.solidblockmenu li a{
float: left;
color: white;
padding: 9px 20px;
text-decoration: none;
border-right: 1px solid white;
}
.solidblockmenu li a:visited{
color: white;
}
.solidblockmenu li a:hover, .solidblockmenu li .current{
color: white;
background: transparent url(../images/redactive.gif) center center repeat-x;
Here's the HTML and CSS. Hope someone can help me here...I know very little about fixing Ie6 bugs but maybe its my code setup. Thanks
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/Strict.dtd">
<html>
<head>
<title>Fisher's Home Improvements</title>
<link rel="stylesheet" type="text/css" href="fisher.css" />
</head>
<body>
<div id="container">
<div id="header">
<img src="../images/test_logo_copy1.gif" width="145px" />
</div>
<div id="navbar">
<ul class="solidblockmenu">
<li><a href="http://www.dynamicdrive.com/">Home</a></li>
<li><a href="http://www.dynamicdrive.com/style/">About Us</a></li>
<li><a href="http://www.dynamicdrive.com/forums/">Gallery</a></li>
<li><a href="http://tools.dynamicdrive.com">Suppliers</a></li>
<li><a href="http://www.javascriptkit.com/">Subcontractors</a></li>
<li><a href="http://www.cssdrive.com" style="border: none">Contact</a></li>
</ul>
</div>
:eek::eek: CSS :eek::eek:
body { background-color: #ffffff;
margin: 0;
padding: 0;
}
#container {
padding: 0;
margin: auto;
width: 810px;
min-height: 1000px;
border: solid 1px #000000;
background: #ffffff url(../images/background_gradient.jpg) repeat-x;
}
#header {
padding: 0;
margin: auto;
width: 800px;
height: 100px;
margin-top: 5px;
margin-bottom: 5px;
}
#navbar {
padding: 0;
width: 809px;
height: 60px;
}
.solidblockmenu {
margin: 0;
padding: 0;
font: bold 14px Arial;
width: 100%;
overflow: hidden;
margin-bottom: 1em;
border: 1px solid #625e00;
background: black url(../images/navdefault.gif)center repeat-x;
}
.solidblockmenu li{
display: inline;
}
.solidblockmenu li a{
float: left;
color: white;
padding: 9px 20px;
text-decoration: none;
border-right: 1px solid white;
}
.solidblockmenu li a:visited{
color: white;
}
.solidblockmenu li a:hover, .solidblockmenu li .current{
color: white;
background: transparent url(../images/redactive.gif) center center repeat-x;