Hi — Anyone know how I can wrap a div around (or position it over) an absolute positioned fluid width/height image. I can't figure it out.
Thanks B.
<div class="wrap">
<img src="http://placekitten.com/g/500/500"/>
</div>
and...
img{
position:absolute;
top:0; bottom:0; left:0; right:0;
max-width:100%;
max-height:100%;
margin:auto;
}
.wrap{
border:5px solid red;
display:block;
}
Here's a: http://jsfiddle.net/20owLkxy/1/