Possible Duplicate:
Navigation hyperlinks only work when mouse is on the text
Can you set a link to the whole width of an < li > instead of just where the text is?
This is what I mean, I want the user to be able to click on anywhere on the button and go to the link and not just the text: http://jsfiddle.net/b7S4L/
One of the problems is that I cannot use display: block; because I have a number after the < a > link for example (1)
I think I understand what you’re trying to do here. Though, I’m not sure because your question has been quite confusing..
First, do set
display: blockon thea. That is the right thing to do here.Then, move the number inside the
a, and add aspaninside:Then, some extra CSS is needed. You should merge the new CSS with what you already have – for the demo, I’ve added it within the HTML pane for simplicity (marked with
<!--new css right here-->):http://jsfiddle.net/thirtydot/b7S4L/3/
The messing around with
spanand:hoveris to keep the colour and underline exactly as you had it.