Skip to content

Instantly share code, notes, and snippets.

@johnkpaul
Created February 5, 2012 17:02
Show Gist options
  • Save johnkpaul/1746591 to your computer and use it in GitHub Desktop.
Save johnkpaul/1746591 to your computer and use it in GitHub Desktop.
.original-background{
background:url(http://img850.imageshack.us/img850/2400/rowofstars.gif) repeat;
}
.diagonal-background:before{
content:"";
background:url(http://img850.imageshack.us/img850/2400/rowofstars.gif) repeat;
width:200%;
height:200%;
position:absolute;
top:0px;
left:0px;
z-index:-1;
-webkit-transform:rotate(-13deg) translate(10px,-220px);
-moz-transform:rotate(-13deg) translate(10px,-220px);
-o-transform:rotate(-13deg) translate(10px,-220px);
-ms-transform:rotate(-13deg) translate(10px,-220px);
}
.diagonal-background{
overflow:hidden;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment