0
I put a div as relative, and the others inside as Absolute, but only div 3 is showing up because it’s the last I think, the problem is why they’re clustering like this?
<div id="ofertas">
<ul>
<div class="venda">
<li>Casa 1</li>
</div>
<div class="venda">
<li>Casa 2</li>
</div>
<div class="venda">
<li>Casa 3</li>
</div>
</ul>
</div>
CSS code
body{
padding: 0;
margin: 0;
}
#ofertas{
height: 100%;
width: 20%;
background-color: grey;
position: relative;
}
#ofertas ul li {
list-style: none;
}
.venda{
position: absolute;
height: 150px;
width: 80%;
background: blue;
display: inline-block;
padding: 0;
margin: 0 auto;
margin-bottom: 50px;
}
Notice that only div 3 appears because it occurs?
I think you put the inline-block in the wrong place, put it in the main div Offers.
– Abel Cabral de Arruda