1
I have the HTML:
<li class="duoBtsAnalise"><a href="#">Análises de Risco</a></li>
I want the click of a
is active throughout the li
.
My CSS:
.duoBtsAnalise {
background-image: url("../imagens/duoAnalise.jpg");
background-repeat: no-repeat;
background-position: center;
width: 183px;
height: 182px;
float: left;
font-family: "Titillium Web", sans-serif;
font-weight: 600;
color: white;
padding-top: 135px;
text-align: center;
box-sizing: border-box;
cursor: pointer;
display: block;
}
I’m asking this, because the li
is a large square and the a
is just the text.
The best in my view would be to format the A as a block so as to occupy the square instead of just styling the read.
– Bacco
@Bacco was that same guy, I don’t know how I didn’t think of it before, thanks
– Felipe Viero Goulart
@Bacco formal response ;)
– Jorge B.
@Felipe if you can solve this way and think the result was good, consider posting as an answer to leave complete the post.
– Bacco
(just don’t forget to pass the padding inside the A)
– Bacco