Hi All,
Please refer the below code. I want the boxes for Blue and all other color to be stretched. I mean it should start and end with the border of Styles and Colors.
Thanks
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Component5 colors</title>
<style type="text/css">
.theoneclicked {
background-color:#b0c4de;
}
ul {
display: block;
list-style: none;
}
ul#nav_top {
width:100px;
border: 1px solid black;
}
li#nav_top1, li#colors {
width:100px;
border: 1px solid black;
display: block;
}
li#nav_mid1 {
border: 1px solid black;
}
a {
text-decoration:none;
}
</style>
</head>
<body>
<ul id="nav_top">
<li id="nav_top1"><span class="heading"><a href="comp5.html">Styles</a></span></li>
<li id="colors"><span class="theoneclicked"><a href="colors.html">Colors</a></span></li>
<ul id="nav_mid">
<li id="nav_mid1">
Blue
</li>
<li id="nav_mid1"> Orange</li>
<li id="nav_mid1">Green</li>
</ul>
<li id="images"><span class="nav">Images</span></li>
</ul>
</body>
</html>