Skip to content

Instantly share code, notes, and snippets.

@csssecrets
Last active September 16, 2022 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 40 You must be signed in to fork a gist
  • Save csssecrets/170fe436f290083cc24c to your computer and use it in GitHub Desktop.
Save csssecrets/170fe436f290083cc24c 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