PDA

View Full Version : Specifying the bullet type for a list item


codefox
02-13-2003, 07:15 AM
I have an unordered list as follows:
<UL style="list-style-type: square">
<LI>Item-1</LI>
<LI>Item-2</LI>
<LI>Item-3</LI>
<LI>Item-4</LI>
<LI>Item-5</LI>
</UL>

I would like to have item-3 displayed with the right angle quote (&raquo;) as the bullet. Any ideas?

I tried using "display: marker" thinking it would help, but didn't work.

Thanks.

brothercake
02-13-2003, 09:53 AM
You can go

list-style-image:url(bullet.gif);

Which works in 5+ browsers, but is buggy in Opera 7 (it draws the image and the default bullet; yuck).

I don't think you can do a text-character assignment directly, but you could use list-style-type:none, then use the :before pseudo-class to add the marker (although this won't work in any version of IE)