Little Known CSS List Styles
Sun Jan 24 02:38:47 2010
Even though HTML is not a programming language, but rather a markup language, it sometimes amazes me how much HTML has to offer. Just today, for example, I was reading a magazine and discovered some very useful CSS list styles. Most of them I has already seen, but those I hadn't still looked useful. As I live in Japan, the Japanese list styles look particularly useful. Anyway, just take a look below to check them all out. Just click on any of the links to see the style effect in real time.
Useful List Styles
- list-style:none;
- list-style:circle;
- list-style:disc;
- list-style:square;
- list-style:lower-greek;
- list-style:lower-roman;
- list-style:uppper-roman;
- list-style:lower-latin;
- list-style:upper-latin;
- list-style:lower-alpha;
- list-style:uppper-alpha;
- list-style:upper-latin;
- list-style:lower-latin;
- list-style:decimal;
- list-style:decimal-leading-zero;
Useful List Styles in Japan
- list-style:cjk-ideographic;
- list-style:hiragana;
- list-style:katakana;
- list-style:hiragana-iroha;
- list-style:katakana-iroha;
To use these styles, either put style="list-style:'style';"
on the tag you would like to style. Otherwise, import a external stylesheet or use the styles tags at the top of your HTML page and write li{list-style:'style';}
As you can see, there are some really useful ones. It is just such a shame that most coders only get to use some more than others. I would love to see a wider use of these incorporated into the designs of more of the websites that I see on a daily basis. It just seems such a waste not to use them!
Tweet