1
I want, that when I hover over the li
, to div
companyMenusEsqhover stay as display:block
.
I can do this in Jquery, but I want to do as much as I can via CSS.
I have the HTML:
<ul>
<li>
<h3>Apresentação</h3>
<div style="display:none" class="empresaMenusEsqHover"></div>
</li>
<li>
<h3>Perfil da Empresa</h3>
<div style="display:none" class="empresaMenusEsqHover"></div>
</li>
<li>
<h3>Histórico</h3>
<div style="display:none" class="empresaMenusEsqHover"></div>
</li>
<li>
<h3>Mercado de Atuação</h3>
<div style="display:none" class="empresaMenusEsqHover"></div>
</li>
</ul>
CSS:
.empresaMenusEsq{
width: 228px;
height: 145px;
padding-left: 10px;
padding-top: 15px;
background-color: white;
}
.empresaMenusEsq li h3{
font-family: "Open-Sans-SemiBold";
font-size: 15px;
color: #333333;
margin-bottom: 10px;
}
.empresaMenusEsq li:hover{display: block;}
.empresaMenusEsqHover{
background-image: url("../imagens/empresaMenusEsq.png");
background-repeat: no-repeat;
position: absolute;
width: 248px;
height: 29px;
}
In my case it would be
.empresaMenusEsq ul li h3:hover .empresaMenusEsqHover{display: block;}

?– Felipe Viero Goulart
@Felipestoker, I added more info to the answer. You answered the question you put here in the comment?
– Sergio
It worked @Sergio, thank you very much
– Felipe Viero Goulart
@Felipestoker, exact! You’ll have to make adjustments to the height, and have some text to show, now it’s empty. but that’s it. http://jsfiddle.net/Le7ckme0/2/
– Sergio