Skip to content

Instantly share code, notes, and snippets.

@benjamincharity
Created November 7, 2012 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save benjamincharity/4034534 to your computer and use it in GitHub Desktop.
Save benjamincharity/4034534 to your computer and use it in GitHub Desktop.
CSS Border with Box-Shadow Example
/**
* CSS Border with Box-Shadow Example
*/
div {
/* Borders */
box-shadow: 0 0 0 6px rgba(0,0,0,0.2), 0 0 0 12px rgba(0,0,0,0.2), 0 0 0 18px rgba(0,0,0,0.2), 0 0 0 24px rgba(0,0,0,0.2);
/* Meaningless pretty things */
background: linear-gradient(45deg, powderBlue, ghostwhite);
height: 200px;
line-height: 200px;
font-family: sans-serif;
color: MidnightBlue;
margin: 100px auto;
text-align: center;
width: 400px
}
<div>Eh careful man, there's a beverage here eh!</div>
{"view":"split-vertical","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