[thelist] CSS: characters as list item markers?

Saila, Craig Craig.Saila at bgminteractive.com
Thu Feb 20 12:05:02 CST 2003


Jackson Yee wrote:
> In browsers which fully support CSS-2 (insert laughing in
> background here), you could use display: marker with content:
> ».  However, for total compatibility, I'd still use

Safest to use the Unicode, so:
 /*SomeBlockElement*/ { display: marker; content: "\BB"; }

For non-IE/Win browsers this CSS would work fine:
 html>body ul { list-style: none; }
 ul li:before {content: "\BB\A0"; } /* \A0 is a non-breaking space */
This also allows you to keep the list in a UL.

--
Cheers,

Craig Saila
------------------------------------------
craig at saila.com : http://www.saila.com/
------------------------------------------



More information about the thelist mailing list