dstarz Posted May 13, 2013 Share Posted May 13, 2013 Hello, I tried search and google but it didn't make me wiser. 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 More sharing options...
dstarz Posted May 13, 2013 Author Share Posted May 13, 2013 Ok Sorry for the question, I have the answer. It was my CSS that was interfering with the lists.So it works like I explained in example 1. Link to comment Share on other sites More sharing options...
Krewe Posted May 13, 2013 Share Posted May 13, 2013 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 More sharing options...
Ingolme Posted May 13, 2013 Share Posted May 13, 2013 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now