1 (edited by SnaikBG 2013-03-26 16:14:13)

Topic: Can i make whole <li> a link ?

Hello as i understand currently when you make a menu from the menu's tap the active link is only the text inside the <li><a></a></li> i was wondering is it possible to tweak it so that the whole <a><li></li></a> becomes the link because in my current project i am using the <li>'s to store background buttons and i am using text-indent: -5000px to hide the text however i can't use them without the text tongue so here is my dilemma. It's not a big deal if you can't i will simply implement it in the html, but it might come in handy in the future too?

2 (edited by RedStar 2013-03-30 02:12:06)

Re: Can i make whole <li> a link ?

Hmmm...first I dont think its good to have block elements inside inline eg. <a><li></li></a> smile
Second try to add css rule to <a>

display: inline-block;

  and add some padding..or

dipslay: block;

Hope it helped since I pretty new to CSS. If not let me know I and will try to understand what you are tryng to achive.
Tested it and it works even with text indented...

Cheers!