I am trying to create an effect where my image overhangs outside of its containing div. I have positioned the image absolute and the parent container relative, but now the parent div does not resize to contain the image. How can I achieve this?
Here is the HTML code:
<div class=".twelve.columns" id="header">
<div id="logoWrapper">
<img src="https://nbson.com/sni/images/logo.png" class="ssImg">
<div class="clr"></div>
</div>
</div>
And here is the CSS code:
.ssImg{
width:100%;
}
.clr{
clear:both;
}
#header{
margin-top:0;
background:#000;
position:relative;
width:100%;
border:1pt solid pink;
}
You can view a sample on JSFiddle