Forum Moderators: not2easy
Is there a recommended way around this ?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<style>
#homeBanner ul.subMenu{
padding:0;
margin:0;
list-style:none;
border:1px solid red;
height:auto;
}#homeBanner ul.subMenu li{
display:inline;
padding-left:5px;
height:100%;
}
#homeBanner ul.subMenu li a{
text-decoration:none;
font-family:verdana;
background-color:#c8c8c8;
opacity:0.85;
color:white;
font-weight:bold;
font-size:9pt;
padding-left:10px;
padding-right:10px;
padding-top:13px;
padding-bottom:13px;
filter: alpha(opacity = 85);
zoom:1;
}
</style>
</HEAD>
<BODY>
<div id='homeBanner'>
<ul class='subMenu'>
<li><a href='#' >Revenue Assurance</a></li>
<li><a href='#'>Data Validation</a></li>
<li><a href='#'>Workflow Automation</a></li>
<li><a href='#'>Automatic Problem Resolution</a></li>
<li><a href='#'>Parallel Rating</a></li>
<li><a href='#'>Data Migration</a></li>
</ul>
</div>
</body>
</html>
height: 100% is supposed to not do anything if the direct parent has a height equal to auto.
Moreover height is not supposed to do anything on inline elements.
See [w3.org...]
Expanding elements to contain children is indeed something IE likes to do (it should not, consider it one of the many IE bugs.)