-
-
Save g12n/3235847 to your computer and use it in GitHub Desktop.
Chrome rounded corner bug test – with relative positioning
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Chrome rounded corner bug test*/ | |
.cropImage { | |
display: block; | |
overflow: hidden; | |
float: left; | |
border: 2px solid #000; | |
border-radius:50px; | |
/*Position Relative prohibits the div in Chrome and Safari from clipping it's child elements */ | |
position:relative; | |
} | |
img{ | |
vertical-align: bottom; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="cropImage"> | |
<img src="http://placehold.it/350x150" /> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment