PDA

View Full Version : Bullets


anner
02-08-2007, 09:20 AM
Does anyone konw if you can have a coloured standard bullet with black text without putting the bullet in as a graphic?

Many thanks

davidj
02-08-2007, 09:45 AM
seperate your bullets from your text using a div or a span then apply a different CSS style to each


ul.color{
list-style-type: disc;
color: blue;
}

.txt{
color: black;
}


<ul class="blue">
<li><div class="txt">Item one</div></li>
<li><div class="txt">Item one</div></li>
<li><div class="txt">Item one</div></li>

anner
02-08-2007, 10:29 PM
Many thanks for that!

chriskq
02-09-2007, 01:22 AM
lol... but sloppy Dj... nah im just messn. but u did slighly code ur list incorrect - it should be:

<ul class="color">
<li><div class="txt">Item one</div></li>
<li><div class="txt">Item one</div></li>
<li><div class="txt">Item one</div></li>
</ul>


anner, can u spot what i changed?

davidj
02-09-2007, 06:00 AM
Ooops

missed that