Skip to content

Instantly share code, notes, and snippets.

Created June 7, 2012 16:01
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 anonymous/2889671 to your computer and use it in GitHub Desktop.
Save anonymous/2889671 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
*/
img { max-width: 100%; }
.poster {
position: absolute;
top: 50%; left: 50%;
margin-left: -250px; margin-top: -168.5px;
width: 500px;
}
.poster:before {
content: '';
position: absolute;
left: 0; right: 0; bottom: 5px; top: 0;
background-image: linear-gradient(black 50%, transparent 50%), linear-gradient(left, transparent 50%, black 50%);
background-size: 2px 2px;
opacity: 0.5;
}
<div class="poster">
<img src="http://assets.nath.is/blog/posts/texture.jpg">
</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