<ul> and <li> are defined as such:
ul {
margin:.5em 0 1em;
padding:0;
list-style-type:none;}
ul li {
background:url("/img/bullet.gif") no-repeat 11px .7em;
margin:0;
padding:0 0 2px 18px;
line-height:1.5em; }
<ul> and <li> are defined as such:
ul {
margin:.5em 0 1em;
padding:0;
list-style-type:none;}
ul li {
background:url("/img/bullet.gif") no-repeat 11px .7em;
margin:0;
padding:0 0 2px 18px;
line-height:1.5em; }
You are reading <ul>s and <li>s in CSS, posted to the Nedward.org weblog.
Categories: weblogs
No trackbacks for this entry.
Comments
From Only the Most Respected Minds
wrote on Oct 21, 2003 11:37 PM
Randomly stunbled on this, thought I’d offer a hand.
What about setting your UL’s list-style to:
url(http://ned.suckahs.org/img/bullet.gif) square
and set no other list-* stuff on UL’s or LI’s. (setting that stuff on LI’s is not reccommended by W3C anyway) This is much cleaner than the background-image hack!