Overlapping a div in the footer of another div equals content calls from WikiHow .
Looking at the CSS code I noticed that position: absolute
is applied to div2 positioned in the footer, but I have not seen how it is fixedly positioned in the footer of div1.
How is div2 positioned according to div1 and not the entire page?
Follow the current code:
.publi{
max-width: 230px;
max-height: 300px;
overflow: hidden;
}
.limt-img{
width: 100%;
height: 100%;
}
.img-publi{
width: 100%;
height: 100%;
}
.position-title{
background-color: #292929CC;
color: white;
position: absolute;
max-width: 230px;
max-height: 300px;
width: 100%;
}
<div class="publi">
<div class="position-title">
<span>Titulo</span>
</div>
<div class="limt-img">
<img class="img-publi" src="http://bit.ly/2ip2YvD"alt="FOTO"/>
</div>
</div>