When I test your code in internet explorer it has the same problem that the links don't show up inside of the div.
Edit:
I want my links to look like the first three links in this picture:
But when I add the class to my last link this happens
Here is the code I used to get these(to get the first one I took the class off of the last link)
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<style>
div.topNavBar{
padding-bottom:4px;
background:#25587E;
border-bottom:medium solid #4070AE;
}
ul.topNavBarul{
padding:0;
margin:0;
margin-left: 40px;
list-style-type:none;
}
li.topNavBarli{
margin:0;
padding: 0;
text-transform:uppercase;
display:inline
}
a.topNavBara{
float:left;
margin:2px 2px 2px 0;
padding:2px;
display: block;
color:white;
text-decoration: none;
font-weight:bold;
font-size:105%;
background-color:#41627E;
padding:0;
}
a:hover.topNavBara{
background-color:#736F6E
}
</style>
</head>
<body>
<div class="topNavBar">
<ul class="topNavBarul">
<li class="topNavBarli"><a class="topNavBara" href="#">Link one</a></li>
<li class="topNavBarli"><a class="topNavBara" href="#">Link two</a></li>
<li class="topNavBarli"><a class="topNavBara" href="#">Link three</a></li>
<li class="topNavBarli"><a class="topNavBara" href="#">Link four</a></li>
</ul>
</div>
</body>
</html>
Last edited by jamest; 08-27-2007 at 12:11 PM..
|