Skip to content

Instantly share code, notes, and snippets.

@benschwarz
Forked from anonymous/dabblet.css
Created June 29, 2012 06:48
Show Gist options
  • Save benschwarz/3016343 to your computer and use it in GitHub Desktop.
Save benschwarz/3016343 to your computer and use it in GitHub Desktop.
Untitled
body { padding: 10em; }
textarea { min-width: 40em; }
div {
padding: 2em;
border-left: 5px solid #c1c2c4;
border-right: 5px solid #c1c2c4;
position: relative;
}
div::before, div::after {
position: absolute;
display: block;
content: '';
height: 5px;
background-size: 5px 5px;
background-position: left top, right top;
background-repeat: no-repeat;
left:0; right: 0;
}
div::before {
top: 0;
background-image:
linear-gradient(#c1c2c4 20px, white 21px),
linear-gradient(#c1c2c4 20px, white 21px);
}
div::after {
bottom: 0;
background-image:
linear-gradient(#c1c2c4 20px, white 21px),
linear-gradient(#c1c2c4 20px, white 21px);
}
<div>
<p><textarea>Resize me</textarea></p>
</div>
{"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