TheRoper
05-19-2005, 06:32 AM
hello-
so i was told by my web design teacher that i should code my navbar as a list, whether it is vertical or horizontal... i am using a horizontal navbar and want to use my own custom image as the bullets... but from my research (google) i think that you cannot use "list-style-image" on a list that has "display:inline"... is this true? how can i use my own image as bullets on a horizontal navbar?
my css
#navbar {
text-align: center;
font-size: 1.4em;
background: #cccccc url("../images/fade.gif");
background-repeat: repeat-x;
border: 2px outset #cc0000;
padding-top: 1px;
padding-left: 10px;
padding-right: 10px;
padding-bottom: 1px;
height: 35px;
width: 80%;
}
#navbar ul {
list-style-image: url("../images/bullet.gif");
margin-left: 0;
margin-bottom: 0;
}
#navbar li {
display: inline;
margin-left: 10px;
margin-right: 10px;
}
my html
<div id="navbar">
<ul>
<li><a href="index.html" class="current">Home</a></li>
<li><a href="history.html">History</a></li>
<li><a href="pictures.html">Pictures</a></li>
<li><a href="fun.html">Fun</a></li>
<li><a href="shops.html">Shops</a></li>
<li><a href="aboutme.html">About Me</a></li>
<li><a href="sitemap.html">Site Map</a></li>
<li><a href="links.html">Links</a></li>
</ul>
</div>
thanks in advance for your help...
ps - i am coding to xhtml 1.0 strict
so i was told by my web design teacher that i should code my navbar as a list, whether it is vertical or horizontal... i am using a horizontal navbar and want to use my own custom image as the bullets... but from my research (google) i think that you cannot use "list-style-image" on a list that has "display:inline"... is this true? how can i use my own image as bullets on a horizontal navbar?
my css
#navbar {
text-align: center;
font-size: 1.4em;
background: #cccccc url("../images/fade.gif");
background-repeat: repeat-x;
border: 2px outset #cc0000;
padding-top: 1px;
padding-left: 10px;
padding-right: 10px;
padding-bottom: 1px;
height: 35px;
width: 80%;
}
#navbar ul {
list-style-image: url("../images/bullet.gif");
margin-left: 0;
margin-bottom: 0;
}
#navbar li {
display: inline;
margin-left: 10px;
margin-right: 10px;
}
my html
<div id="navbar">
<ul>
<li><a href="index.html" class="current">Home</a></li>
<li><a href="history.html">History</a></li>
<li><a href="pictures.html">Pictures</a></li>
<li><a href="fun.html">Fun</a></li>
<li><a href="shops.html">Shops</a></li>
<li><a href="aboutme.html">About Me</a></li>
<li><a href="sitemap.html">Site Map</a></li>
<li><a href="links.html">Links</a></li>
</ul>
</div>
thanks in advance for your help...
ps - i am coding to xhtml 1.0 strict