mardi 3 mai 2016

HTML/CSS Fluid Grid: How to overlay div to another div

I'm really having a hard time researching for an answer. I tried to make my div: absolute but it will ruin the whole fluid grid. All I want is to put the div over the background div. Thanks in advance!

CSS

#mannequin {
box-sizing: border-box;
position: absolute;
width: 60%;
padding: 0 12px;
margin: 0;
float: left;
overflow: hidden;
}

#products {
clear: both;
position: absolute;
margin-left: 0;
width: 100%;
display: block;
z-index: 10;
}

HTML

<div id="mannequin"><img src="http://ift.tt/1TI2hem"> 
<div id="products"><img src="http://ift.tt/1W47xMV">
</div>
</div>




Aucun commentaire:

Enregistrer un commentaire