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
https://forums.phpfreaks.com/topic/235123-multiple-s-inside-a-confusion/
Share on other sites

There's a malformed closing </li> tag at the end, but otherwise I get the result you're looking for with the exception of the bullets, but that can be changed with CSS. See the screen shot attached.

 

[attachment deleted by admin]

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.

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.