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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

complex <ol> & <li> lists

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
i have searched everywhere with no luck, is it possible to have complex ordered lists ?? ie


1. intro
1.1 brief
1.2 dsfhkdh

2. story
2.1 chapter
2.1.1 eval

3. end
 
either use css
or use them simply :
<ul>
<li><ul>
<li>
...
</ul>
...

 
Have you tried

<ul>
1. Intro
<ul>
1.1 Brief<br>
1.2 Dsfhkdh
</ul>
</ul>

<ul>
2. Story
<ul>
2.1 Chapter<br>
2.1.1 eval
</ul>
</ul>

<ul>
3. end
</ul>


That should do ya i think.
DeltaFlyer ;-)

DeltaFlyer - The Only Programmer To Crash With Style.
 
Sorry, pasted the wrong one.

<ul>
<li>1. Intro
<ul>
<li>1.1 Brief<br>
<li>1.2 Dsfhkdh
</ul>
</ul>

<ul>
<li>2. Story
<ul>
<li>2.1 Chapter<br>
<li>2.1.1 eval
</ul>
</ul>

<ul>
<li>3. End
</ul>

Cheerio!! DeltaFlyer ;-)

DeltaFlyer - The Only Programmer To Crash With Style.
 
if all else fails i will do that but is there not a way to set the <li> tag so that the values are 1.1 ie includes decimal places ??


if i use the above option then the paragraphs are not separate to the numbering just a part of it
 
if all else fails i will do that but is there not a way to set the <li> tag so that the values are 1.1 ie includes decimal places ??
USE CSS !!! USE CSS !!! USE CSS !!! USE CSS !!! USE CSS !!! USE CSS !!! USE CSS !!! USE CSS !!! (sorry to yell but it was the 1st line of the 1st answer you got !) !!!!!!! my connexion is so slooooow i can't access to their doc to read it for you -
 
copied / paste from the w3c site - css1 spec !!
5.6 Classification properties
These properties classify elements into categories more than they set specific visual parameters.
The list-style properties describe how list items (i.e. elements with a 'display' value of 'list-item') are formatted. The list-style properties can be set on any element, and it will inherit normally down the tree. However, they will only be have effect on elements with a 'display' value of 'list-item'. In HTML this is typically the case for the 'LI' element.
...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top