Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ordered list with numbers 1

Status
Not open for further replies.

evergreean

Technical User
Feb 15, 2006
68
US
I thought there was a way to display numbers in an ordered list or do I have to put them in manually?

Code:
<ol>1. States
<li>1. California</li>
   <li>1. City</li>
   <li>2. County</li>
<li>1. Oregon</li>
   <li>1. City</li>
   <li>2. County</li>
</ol>

Should look like this:
Code:
1. States
    1. California
          1. City
          2. County
    2. Oregon
          1. City
          2. County

 
They are automatic. Unless you have styles your lists to remove the numbers, this should work:

Code:
<ol>
   <li>Item 1</li>
   <li>Item 2</li>
   <li>Item 3</li>
</ol>

Hope this helps,
Dan

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Thanks,

How do you indent the listings like I have in my example?
 
Works great and thanks for your quick answers!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top