Skip to content

Instantly share code, notes, and snippets.

@SBaof
Forked from csssecrets/dabblet.css
Created September 19, 2017 12:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SBaof/2fe90941979769ac31dc54727909454c to your computer and use it in GitHub Desktop.
Save SBaof/2fe90941979769ac31dc54727909454c to your computer and use it in GitHub Desktop.
Inner rounding
/**
* Inner rounding
*/
div {
outline: .6em solid #655;
box-shadow: 0 0 0 .4em #655; /* todo calculate max of this */
max-width: 10em;
border-radius: .8em;
padding: 1em;
margin: 1em;
background: tan;
font: 100%/1.5 sans-serif;
}
<div>I have a nice subtle inner rounding, don’t I look pretty?</div>
// alert('Hello world!');
{"view":"split-vertical","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