Skip to content

Instantly share code, notes, and snippets.

@ramsesoriginal
Created September 17, 2012 09:37
Show Gist options
  • Save ramsesoriginal/3736448 to your computer and use it in GitHub Desktop.
Save ramsesoriginal/3736448 to your computer and use it in GitHub Desktop.
rounded corner streteched image with padding on IE8 *
/** rounded corner streteched image with padding on IE8 **/
img {
height: 100%;
display: block;
float: left;
z-index: -1;
}
.gonzdrinnen {
overflow: hidden;
width: 100%;
height: 100%;
padding: 0;
}
.inner {
overflow: hidden;
border-radius: 30px;
width: 100%;
height: 100%;
padding: 0;
}
.outer {
padding: 10px;
background-color: red;
display: block;
margin-left: auto;
margin-right: auto;
width: 300px;
height: 300px;
}
<!-- content to be placed inside <body>…</body> -->
<div class="outer">
<div class="inner">
<div class="gonzdrinnen">
<img src="http://pic.templetons.com/brad/pano/midpano/center-wide.jpg" alt="bild" />
</div>
</div>
</div>
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment