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; }
1.4m articles
1.4m replys
5 comments
57.0k users