I have a menu structure:
<ul id="footer-nav">
<li id="button1"><a href="#page-1">a</a></li>
<li id="button2"><a href="#page-2">a</a></li>
<li id="button3"><a href="#page-3">a</a></li>
<li id="button4"><a href="#page-4">a</a></li>
<li id="button5"><a href="#page-5">a</a></li>
<li id="button6"><a href="#page-6">a</a></li>
<li id="button7"><a href="#page-7">a</a></li>
<li id="button8"><a href="#page-8">a</a></li>
</div>
CSS:
ul#footer-nav {background:url(images/footer-nav_bg.png) no-repeat;height:52px;position:relative;left:50%;bottom:22px;width:272px;}
ul#footer-nav li {background: url(images/footer-nav-li_bg.png) no-repeat;height: 20px;width: 20px;top: 45%;float: left;position: relative;margin-right: 10px;left: 8%;}
When i click a menu item, go to page. It’s ok. But i want, no text on menu item so when i remove a text on my structure, unclickable my menu item. How can i solve it?
This is because your
adoes not take up any space when empty – and therefore not clickable.You can add the following CSS to solve this: