I would like to do this so that the clickable region on the tag is size of the LI.
LI
My html looks like:
<li> <a href="#">Link</a> </li>
As others have said
li a { display: block; }
should achieve what you're after. But you must also remove any padding from the <li> and set it on the <a> instead. For example:
li { padding: 0; } li a { display: block; padding: 1em; }
2.1m questions
2.1m answers
60 comments
57.0k users