By default, most browsers display the ordered list numbers same font style as the body text. Here is a quick CSS tutorial on how you can use the ordered list (ol) and paragraph (p) element to design a stylish numbered list.
Overview
Basically, what we need to do is style the ol element to Georgia font, and then reset the p element (nested in ol) to Arial.

1. HTML source code
Make an ordered list. Don't forget to wrap your text with a <p> tag.
<ol>
<li>
<p>This is line one</p>
</li>
<li>
<p>Here is line two</p>
</li>
<li>
<p>And last line</p>
</li>
</ol>
Here is how the default ordered list will display:

2. ol element
Style the ol element:
ol {
font: italic 1em Georgia, Times, serif;
color: #999999;
}
The list will become like this:

3. ol p element
Now style the ol p element:
ol p {
font: normal .8em Arial, Helvetica, sans-serif;
color: #000000;
}
Your final list should look like this:

View my demo file to see more samples.
This means I have to manually put the text between the tags every time I make an ordered list. In wordpress 2.8 however, the tags are removed after a switch between Visual and HTML type mode. Then all my work is gone.
Is there any function or php loop I can use to stop this? Or better yet, insert tags automatically.
i use the old html first ,now i use css/html ,very useful
Thanks for the inspiration!
Anyway to make the text wrap under the number using the ol?
nice skill. strong css
Great , Style Your Ordered List
Great article. CSS saved web design
Cyrus
Visit http://www.psdtoxhtmlcoder.com
Very Nice.. very Simple… Thanks….
Simple and easy for beginner like me.
Very nice lesson :) Thanks.
tnx. :) love it!
i like ur BG too.
The designs showed here show what simple and tasteful design is all about. Another one to consider
Or just use a span instead of a p. Its more semantic and it works in Firefox…
Bob, what planet are you on? how is a span more semantic than a P lol
Shelt, Bob is right, because P is a paragraph. Span doesn’t imply that it’s a paragraph.
Love IT!
Very useful trick there! Similar to using spans for the same purpose of styling
thank you so much for sharing. nice post. i like it :p
so with this i can also make it colored or different size but to change the single line color ill do the same but with each right ?
The designs showed here show what simple and tasteful design is all about