Created
May 18, 2012 09:47
-
-
Save orioltf/2724344 to your computer and use it in GitHub Desktop.
#CSS: Illustrating correct & wrong inner border-radius. http://dabblet.com/gist/2724344
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
/** | |
* Illustrating correct & wrong inner border-radius | |
*/ | |
.outer { | |
padding: 10px; | |
margin: 50px; | |
border: 1px solid silver; | |
box-shadow: 0 0 10px gray; | |
border-radius: 20px; | |
} | |
div div { | |
padding: 30px; | |
background: slategray; | |
font-size: 200%; | |
font-weight: bold; | |
color: white; | |
} | |
.outer.wrong div { | |
border-radius: inherit; | |
} |
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="outer right"><div>This</div></div> | |
<div class="outer wrong"><div>NOT this</div></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":"separate","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