0
I have a problem I think very simple. But I’ve done everything and nothing solves, as you can see in the print div
who is with the hover
she doesn’t stand on top of the div
pai
http://prntscr.com/isgxqp what I could do?
The div info_perfil
is with a left:-100px
, but she’s not getting on top of the div pai
and she’s with the z-index: 9999
CSS:
ul {
list-style: none;
}
ul li {
position: relative;
float: left;
}
#right {
float: right;
box-sizing: border-box;
padding: 5px 5px;
width: 220px;
height: 100%;
background-color: rgba(255,255,255,0.9);
}
#right .usuario_content {
width: 100%;
height: 422px;
overflow: auto;
}
#right .usuario_content ul li {
width: 100%;
height: 40px;
border-bottom: 1px dashed rgba(0,0,0,0.4);
}
#right .usuario_content ul li:last-child {border: none;}
#right .usuario_content ul li a {
position: absolute;
padding: 0 0 0 40px;
width: 100%;
height: 40px;
text-align: left;
font-size: 13px;
box-sizing: border-box;
z-index: 9;
}
#right .usuario_content ul li:hover a {
background-color: rgba(0,0,0,0.1);
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
#right .usuario_content ul li ul li .info_perfil {display: none;}
#right .usuario_content ul li:hover ul li .info_perfil {
top: -37px;
left: -110px;
display: block;
z-index: 9999;
width: 250px;
height: 250px;
background: #ccc;
}
HTML:
<div id="right">
<div id="Principal" class="usuario_content" style="display:block;">
<ul>
<li id="">
<img src="fotos/1.jpg" class="avatar align_left" border="0"/>
<a href="#" id="" class="comecar">Amanda Ferreira</a>
<span id="" class="status on absolute"></span>
<strong class="absolute">Aqui vem o status da pessoa legal</strong>
<ul>
<li><div class="info_perfil absolute"></div></li>
</ul>
</li>
<li id="">
<img src="fotos/1.jpg" class="avatar align_left" border="0"/>
<a href="#" id="" class="comecar">Amanda Ferreira</a>
<span id="" class="status on absolute"></span>
<strong class="absolute">Aqui vem o status da pessoa legal</strong>
<ul>
<li><div class="info_perfil absolute"></div></li>
</ul>
</li>
</ul>
</div>
</div>
I didn’t understand. From the print, the div is above everything.
– Sam
the intention is to get her out of the
div pai
make it pop, got it ? give aleft: -110px
– goio
I don’t get it. What do you mean "pop"?
– Sam
that she takes a
left: -110px
to be above alldiv
http://prntscr.com/ish5fc she’s taking theleft
only that it does not burst thediv pai
– goio
I still don’t understand. I think I’m missing code in the question. There’s not even div #chat and #right. It’s incomplete.
– Sam
there is my whole structure, I will edit the question
– goio
I edited the question, if I change the value of
position: absolute;
forposition: fixed;
it works only that I lose theposition: relative;
of myli
– goio
What class is this:
absolute
?– Sam
.absolute {position: absolute;}
– goio
Pq -110px? You cannot decrease this value so that the div does not go too far left?
– Sam
my intention is exactly this, that she went totally to the left, as if she were not inside the div
pai
only the more I send to the left the more it disappears, it’s not above thepai
in this example print best what I wish to do http://prntscr.com/ishlzp– goio
Now I get it. You won’t be able to do that. The overflow limits all child elements within the father div. What comes out of it is hidden. What you have to do is review the structure.
– Sam
Or use javascript for this.
– Sam
Unless you pull the overflow
– Sam
then I lose the scroll, I’ll try to make a gambiarra, if I can’t I put here what I tried to do
– goio