I have a certain div that holds the boxes, and this div is with overflow:hidden
, so I wanted to open another div with a margin
negative both bottom
and top
, so there the suspended div did not appear of the way expected by overflow:hidden
, then I tried with js
also did not work very well
<div id="box"><!--div com overflow-->
<div id="ler" class="ler">
<div class="suspensa">Conteudo hover 01</div>
</div>
<div id="ler" class="ler">
<div class="suspensa">Conteudo hover 02</div>
</div>
<div>
#box{
width:100%;
width:250px;
overflow:hidden;/*overflow*/
}
.ler{
width:150px;
height:250px;
background-color:#ebebeb;
}
.ler .suspensa{display:none;}
.ler:hover .suspensa{
display:block;
position:absolute;
bottom:-250px;/*margin negativa, a div suspensa nao mostra por causa do overflow na div box*/
width:250px;
height:150px;
background-color:#f4f4f4;
}
That way it did not work, so I tried with js
$("#ler").hover(function(){
(".suspensa").show();
});
Anyone know of a way to fix?