As far as I know, no matter what list-style-type
property you set, the numbers or letters delimiting the list will be followed by a period (.
). Is there any way to change this to, say, a right parenthesis ()
), or even remove it altogether?
Concept
Here is improper CSS showing what I want to do:
<HTML>
<HEAD>
<STYLE>
OL{
list-style-type:decimal;
list-style-punctuation: ')';
}
OL.onlyNumbers{
list-style-punctuation: none;
}
</STYLE>
</HEAD>
<BODY>
<OL>
<LI>Won</LI>
<LI>Too</LI>
<LI>Tree</LI>
<LI>Fore</LI>
<LI VALUE=100>Won Hun Dread</LI>
</OL>
<OL CLASS=onlyNumbers>
<LI>Won</LI>
<LI>Too</LI>
<LI>Tree</LI>
<LI>Fore</LI>
<LI VALUE=100>Won Hun Dread</LI>
</OL>
</BODY>
</HTML>
And here is what I want to see in the browser:
1) Won
2) Too
3) Tree
4) Fore
100) Won Hun Dread
1 Won
2 Too
3 Tree
4 Fore
100 Won Hun Dread
I don't want anything having to do with jQuery or JavaScript in general. I want this to be as close to proper HTML 5 and CSS 3 as possible.