Jump to content

unorder list css3 simple menu


Isset1988

Recommended Posts

Hello my friends,

 

I want to create a vertical menu with some categories and some subcategories.

 

My script produses a little strange the unordered list structure. (there is no way to change this)

<ul>	
	<li>
		<a href="#">
			Category 1
		</a>
	</li>	
	<li>
		<a href="#">
			Category 2
		</a>
	</li>
	        <ul>
		  <li>
			<a href="#">
				SubCategory 2.1
			</a>
		  </li>
		</ul>
		<ul>
		  <li>
			<a href="#">
				SubCategory 2.2
			</a>
		</li>
	       </ul>
	<li>
		<a href="#">
			Category 3
		</a>
	</li>
</ul>

Can someone help me to create a simple css 3 menu.

 

Thank you !

Link to comment
https://forums.phpfreaks.com/topic/278644-unorder-list-css3-simple-menu/
Share on other sites

If the browser corrects your HTML then you can treat it as if it were valid. Use something to inspect the HTML structure of the page (like Chrome's Inspector thing) to make sure the

    was moved into the
  • . Assuming it does so then you can write your CSS as if the markup was valid.

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.