Skip to content

Instantly share code, notes, and snippets.

@markbrown4
Created August 1, 2012 11:26
Show Gist options
  • Save markbrown4/3225953 to your computer and use it in GitHub Desktop.
Save markbrown4/3225953 to your computer and use it in GitHub Desktop.
webkit y u know 1px rule with linear-gradient?
/**
* webkit y u know 1px rule with linear-gradient?
*/
div {
background: #eee;
height: 650px;
background-image: linear-gradient(
transparent,
transparent 50px,
#ccc 50px,
#ccc 51px,
#fff 51px,
#fff 52px,
transparent 52px,
transparent
);
background-size: 100% 100px;
}
<!-- content to be placed inside <body>…</body> -->
<div></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