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.
Really it was very helpful information!
Really it was very helpful information! I was looking for this for a long.
Awesome .. now i can have some fancy numbers..
Hmm, I wish you could style the list style. Or can you?
.
Cool, exactly what i was looking for!
Very informative post. Most of the simple task to do sometimes need your help.
Thank you!
I wonder if there’s a way of doing this without the extra ‘p’ markup. Or if you can somehow just traget the number in the ol as a seperate item to the rest of the list.
Simple, yet very effective.
Great web site! I genuinely love how it truly is simple on my eyes and the data are nicely written. I am wondering how I may well be notified whenever a new post has been made. I’ve subscribed to your RSS which should do the trick! Have a terrific day!
I’ve wound up using your styling expertise a number of times and decided to finally say thanks. THANKS!
You really make it appear so easy along with your presentation but I to find this topic to be actually one thing that I believe I’d by no means understand. It sort of feels too complex and very vast for me. I am having a look ahead for your next publish, I will attempt to get the cling of it!
Iam using this list styles on my website – is there a way to design the list numbers with images?
Not my code but hope it helps you RAM.
ul {
list-style-type: none;
padding: 0px;
margin: 0px;}
li {
background-image: url(sqpurple.gif);
background-repeat: no-repeat;
background-position: 0px 5px;
padding-left: 14px; }
You can also use an image to style the list with:
ul
{
list-style-image: url(‘sqpurple.gif’);
}
but it’s not cross browser compatible.