I have a li
with a
inside, and would like to enable the click of a
for all li
.
That is, when I click on the corner of li
it enters the link anyway, I want to do this without Jquery.
My structure:
.topo {
width: 570px;
margin-left: 95px;
margin-top: 45px;
float: left;
}
.topo > li {
float: left;
margin-left: 25px;
position: relative;
}
.topo li span {
font-family:'Titillium Web', sans-serif;
font-weight: 400;
font-size: 16px;
line-height: 16px;
color: #254261;
cursor: pointer;
padding-bottom: 8px;
}
.topo li:first-child {
margin-left: 0px;
}
.topoBusca {
background: url("../imagens/buscaTopo.png") no-repeat center;
width: 41px;
height: 42px;
float: left;
}
.flechaSubmenu {
background: url("../imagens/flechaSubmenu.png") no-repeat center;
width: 8px;
height: 5px;
display: none;
padding-top: 8px;
}
.topo li:hover .flechaSubmenu, .topo li:hover .subMenu {
display: block;
width: auto;
}
.subMenu {
width: 200px;
position: absolute;
display: none;
padding-top: 21px;
}
.subMenu li {
width: 200px;
height: 42px;
padding-left: 25px;
box-sizing: border-box;
border-bottom: 1px solid #dddedf;
background-color: #ffffff;
font-family:"Titillium Web", sans-serif;
font-size: 16px;
line-height: 42px;
color: #7E7E7E;
font-style: normal;
cursor: pointer;
}
.subMenu li:hover {
color: #254261;
box-sizing: border-box;
border-bottom: 3px solid #f7bb57;
}
<ul class="topo">
<li> <span>Home</span>
<div class="flechaSubmenu"></div>
<ul class="subMenu">
<li> <a href="/analise-de-riscos">Análise de Risco</a>
</li>
</ul>
</li>
</ul>