Forum Moderators: not2easy
I have it set-up so that each <li> has its own box within the menu. So, I had to use list-sytle-position: inside so that the bullet would be within the walls of each <li> box.
IE and Opera do exactly what I ask. Mozilla and Netscape seem to put a <br /> or something after the bullet - so that a line divides the bullet and the link text.
Does anyone know why?
Thanks for any help!
<html>
<head>
<style>
body {
margin: 0; padding: 0;
}
.menu {
width: 15%;
}
ul {
margin: 0; padding: 0;
}
li {
border: .3em solid #000; padding: .3em; list-style-position: inside;
background-color: #faebd7; margin-bottom: 1em;
text-align: center;
}
</style>
</head>
<body>
<div class="menu">
<ul>
<li>
xxxxxxxxxx
</li>
<li>
xxxxxxxx
</li>
<li>
xxxxxxxx
</li>
</ul>
</div>
</body>
</html>
I had set the anchor styles to display block so that when using the hover effect the entire background would be selected rather than just the text.
So because I had my <ul> like this:
<li><a href...></li>
...in Mozilla and Netscape, <li> was block as well as <a>- creating a line break. IE and Opera didn't create the break. My guess is that the latter two are incorrect. Logical enough, just didn't see it at first.
- Thanks for your help...