Forum Moderators: not2easy
.clearer{
height:1px;
overflow:hidden;
margin-top:-1px;
clear:both;
}
#mainheader {
position:absolute;
left:0;top:0;
height: 300px;
width:100%;
background-color: #679153;
border-bottom: 1px solid #004000;
z-index:1;
}
#header {
text-align:center;
height: 260px;
/*width:100%;*/
background-color: #679153;
border-bottom: 1px solid #004000;
position:relative;
z-index:2;
overflow:hidden;
}
#headerleft {
margin;auto;
float:left;
/*text-align:center;*/
height: 260px;
width:550px;
background: #679153 url("../images/lsr-logo.jpg") no-repeat;
position:relative;
z-index:2;
overflow:hidden;
}
#headerright {
text-align:center;
height: 260px;
background-color: #679153;
position:relative;
z-index:2;
overflow:hidden;
}
* html #mainheader {height:301px;he\ight:302px}
* html #header {height:262px;he\ight:262px}
#mainnav {
width:100%;
height: 40px;
margin:0;
background-color: #679153;
border-bottom: 1px solid #004000;
position:relative;
z-index:2;
}
#navlist {
position: relative;
background: url("../images/bg.gif") repeat-x bottom;
font-size:85%;
line-height:normal;
}
#navlist ul {
margin:0;
padding:10px 10px 0;
list-style-type:none;
}
/* sub menu styling */
#navlist ul ul{
display:none;/* hide submenu */
position:absolute;/* remove it from the flow so it can overlap */
left:-10px;
top:1.4em;
width:13em;
}
#navlist ul ul li{float:none;}
#navlist ul ul li a{float:none;}
/* mac hide \*/
* html #navlist ul ul li,
* html #navlist ul ul li a {height:1%}
/* end hide */
#mainnav ul li:hover ul,#mainnav ul li.over ul {/* make sub menu appear */
display: block;
}
#navlist li {
float:left;
background:url("../images/right.gif") no-repeat right top;
margin:0;
padding:0 5px 0 0;
z-index:4;position:relative;
}
#navlist a {
float:left;
display:block;
background:url("../images/left.gif") no-repeat left top;
padding:5px 7px 4px 20px;
text-decoration:none;
font-weight:bold;
color:#9cf;
}
/* Commented Backslash Hack
hides rule from IE5-Mac \*/
#navlist a {float:none;}
/* End IE5-Mac hack */
#navlist a:hover {
color:#fff;
}
#navlist #current {
background-image:url("../images/right_on.gif");
}
#navlist #current a {
background-image:url("../images/left_on.gif");
color:#333;
padding-bottom:5px;
}
* html #mainnav{height:42px;he\ight:40px}
##################################
Can anyone see the problem Please.
Pat
Your best bet for a response is to add the HTML that these styles are affecting...so that people can copy and paste both into a test file where they can see exactly what is going on. CSS goes hand in hand with the HTML it's meant for..giving just the CSS is only giving half the necessary data
-Mike
</ul>
<div class="clearer"></div>
</div>
</div>
#mainheader {
position:absolute;
left:0;top:0;
/* height: 300px; */
width:100%;
background-color: #679153;
border-bottom: 1px solid #004000;
z-index:1;
}
#mainnav {
width:100%;
/* height: 40px; */
margin:0;
background-color: #679153;
/* border-bottom: 1px solid #004000; */
position:relative;
z-index:2;
}
Hmm did not work for IE
What if you comment out the next two rules? The first one is in the middle of your css, the second one is at the bottom.
* html #mainheader {height:301px;he\ight:302px}
* html #mainnav {height:42px;he\ight:40px}