Wednesday, 28 March 2012

gap between list item

Welcome to Technology


Gap between list items

Gap between list items – its the most annoying bug for internet explorer.
You can remove it if you clean all spaces between li and ul elements, o you can just comment those spaces like in example below.

DEMO

Example how to remove gaps

<ul id="navigation"><!--
	--><li><a href="">Sign up</a></li><!--
	--><li><a href="">Orders</a><!--
		--><ul><!--
			--><li><a href="">Dashboard</a></li><!--
			--><li><a href="">Order list</a></li><!--
		--></ul><!--
	--></li><!--
	--><li><a href=""><span><span>My account</span></span></a><!--
		--><ul><!--
			--><li><a href="">Dashboard</a></li><!--
			--><li><a href="">Profile</a></li><!--
			--><li><a href="">Change password</a></li><!--
		--></ul><!--
	--></li><!--
--></ul>

No comments:

Post a Comment