Skip to content

Instantly share code, notes, and snippets.

@bundyo
Created February 5, 2013 09:40
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 bundyo/4713362 to your computer and use it in GitHub Desktop.
Save bundyo/4713362 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body
{
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
}
div
{
position: absolute;
left: 0;
background: white;
overflow: hidden;
width: 100px;
height: 100px;
width: 100%;
}
div:after,
div:before
{
display: block;
content: "\a0";
width: 100%;
position: absolute;
height: 5px;
top: -5px;
left: 0;
box-shadow: 0 2px 2px;
}
div:after
{
top: auto;
bottom: -5px;
box-shadow: 0 -2px 2px;
}
<!-- content to be placed inside <body>…</body> -->
<div></div>
// alert('Hello world!');
{"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