Hi,
I want to change the background color of a ul/li row, but the following
code is not working as I expected. It works in <table><tr>...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<style type="text/css">
#css_table {font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:11px; color:003366;}
#css_table ul {
padding: 0;
margin: 0;
list-style: none;
line-height:24px;
clear:both;
}
#css_table ul li {
padding:2px 8px 2px 8px;
width:auto;
border:1px solid #333333;
float:left;
}
</style>
<body>
<div id="css_table">
<ul onMouseOver="this.bgColor = '#C0C0C0'" onMouseOut ="this.bgColor =
'#FFFFFF'" bgcolor="#FFFFFF">
<li style="width:400px;">Jim</li>
<li>The</li>
<li>Fun</li>
<li>Begins</li>
<li><!-- Put Icon --> Here</li>
</ul>
<ul onMouseOver="this.bgColor = '#C0C0C0'" onMouseOut ="this.bgColor =
'#FFFFFF'" bgcolor="#FFFFFF">
<li style="width:400px;">Jim</li>
<li>The</li>
<li>Fun</li>
<li>Begins</li>
<li>Here</li>
</ul>
<ul onMouseOver="this.bgColor = '#C0C0C0'" onMouseOut ="this.bgColor =
'#FFFFFF'" bgcolor="#FFFFFF">
<li style="width:400px;">Jim</li>
<li>The</li>
<li>Fun</li>
<li>Begins</li>
<li>Here</li>
</ul>
</div>
</body>
</html>