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.

Preview samples

Download HTML file


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.

    <p>This is line one</p>
    <p>Here is line two</p>
    <p>And last line</p>

Here is how the default ordered list will display:

step 1

2. ol element

Style the ol element:

ol {
  font: italic 1em Georgia, Times, serif;
  color: #999999;

The list will become like this:

step 2

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:

step 3

View my demo file to see more samples.


1 5 6 7
  1. gifeasy
    Jul 30, 2012 @ 11:47 am

    Very good thanks!!


  2. Ibiza
    Aug 1, 2012 @ 3:57 am

    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!


  3. lakshmi
    Sep 20, 2012 @ 2:27 pm

    good idea! thanks.


  4. Adrian
    Oct 11, 2012 @ 4:22 am

    Here is a great deal I came to know in terms of discount for SoGoSurvey Yearly Enterprise Account. Goto the home page of SoGoSurvey after you’ve login to your Free Account. Click on Upgrade and select the Enterprise Package. If on the payment page you enter SOGOEN in the Promo Code section and you will see that they offer you a $499 deal instead of $590. I purchased one. Try the code, maybe you get lucky too.


  5. Viron Media
    Dec 5, 2012 @ 11:54 am

    This is a great idea. So simple yet very effective.


  6. oto cam
    Nov 24, 2016 @ 6:36 pm

    Very good thanks!!


  7. maket pasta
    Dec 20, 2016 @ 4:11 pm

    thank you good job!!!


  8. sineklik
    Dec 21, 2016 @ 3:52 pm

    thank you good post..


1 5 6 7

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.