Jump to content

Unordered list in Ordered list


dstarz

Recommended Posts

Hello, I tried search and google but it didn't make me wiser.

  1. Can i get an unordered list in an ordered list?

I tried it like this

<ol><li></li><li></li><ul><li></li><li></li><li></li></ul></ol>

This didn't work for me, so my question is, what am i doing wrong? Or is this not possible like this? 2. Or does someone know how to make them like 1.1, 1.2 1.3, 2, 2.1 etc. I'm new at XHTML/css and i want to do it the right way.Tx in advance.

Link to comment
Share on other sites

I'd put the UL in one of the OL's list tags, but other than that it works.

Link to comment
Share on other sites

In order to be valid, the <ul> tag has to be inside one of the <li> tags of the other list

<ol>    <li>	    <ul>		    <li></li>		    <li></li>	    </ul>    </li>    <li></li>    <li></li></ol>

To my knowledge, automatic numbering as 1.2, 1.3, 2.1... is not possible with HTML and CSS.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...