Skip to content

Instantly share code, notes, and snippets.

@LeaVerou
Forked from csssecrets/dabblet.css
Created January 19, 2015 04:29
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 LeaVerou/a62fe9952e4206bb632b to your computer and use it in GitHub Desktop.
Save LeaVerou/a62fe9952e4206bb632b to your computer and use it in GitHub Desktop.
Patterned borders
/**
* Patterned borders
*/
div {
max-width: 20em;
padding: 1em;
border: 1em solid rgba(0,0,0,.1);
background: repeating-linear-gradient(-45deg, blue 0, blue 1em, transparent 0, transparent 3em),
repeating-linear-gradient(-45deg, red 0, red 1em, transparent 0, transparent 3em) 2.2em 0;
background-origin: border-box;
}
<div>This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. </div>
// alert('Hello world!');
{"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