Jason94 Jason94 - 3 months ago 9
CSS Question

Make a link have 100% width

I have a box that is X px wide. And in it i have a list (

<ul>
) with link elements (
<li><a ..></a><li>
)

How can i with CSS make the link clickable outside the text and in 100% width of the box. Making each line in the box clickable :D

Answer

Add display: block to your a tag.

Comments