Created
April 13, 2013 08:39
-
-
Save LeaVerou/5377617 to your computer and use it in GitHub Desktop.
“Body Border, Rounded Inside” without images or extra elements
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
/** | |
* “Body Border, Rounded Inside” without images or extra elements | |
*/ | |
div { | |
width: 10em; | |
height: 5em; | |
padding: 1em; | |
border-radius: 10px; | |
margin: 100px; | |
background: white; | |
box-shadow: 0 0 0 5px #f06; | |
outline: 10px solid #f06; | |
outline-offset: -moz-calc(-5px); /* fix for FF bug #480888 */ | |
resize: both; overflow: hidden; | |
} |
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>Resize me</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
// alert('Hello world!'); |
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":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment