Jump to content

multiple <ul>'s inside a <ol> confusion!!!


darkmonk

Recommended Posts

im new to html, so this might be a rookie mistake but why isnt this giving me the results im wanting

<div>
<ol>
	<li>first tile of bullets</li>
		<ul>
			<li>bullet 1</li>
			<li>bullet 2</li>
		</ul>
	<li>second title for bullets</li>
		<ul>
			<li>bullet 1</li>
			<li>bullet 2</li>
		</ul>
	<li>third title for bullets</li>
		<ul>
			<li>bullet 1</li>
			<li>bullet 2<li>
		</ul>	
</ol>
</div>

 

Link to comment
Share on other sites

the results im getting are

 

1.title for bullets

bullet 1

bullet 2

 

second title for bullets

bullet 1

bullet 2

 

third title for bullets

bullet 1

bullet 2

 

only the first title is numbered. oops didn't see malformed closing </li>. its only an example code but its layed out the same way that im trying to use.

Link to comment
Share on other sites

now i feel stupid, bar the malformed closing </li>, my example was written correctly, compared to my actual script!

 

i didnt check it properly, i was using the <em> tag as well for the titles so i forgot to put the <li></li> on the outside of the <em>'s

 

my code was reading

 

<em>blah blah title</em>

 

instead of

 

<li><em>blah blah title</em></li>

 

thats why it wasn't numbered in the <ol> sorry for wasting your time

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.