Skip to content

Instantly share code, notes, and snippets.

@rgaspary
Created September 10, 2012 03:44
Show Gist options
  • Save rgaspary/3688754 to your computer and use it in GitHub Desktop.
Save rgaspary/3688754 to your computer and use it in GitHub Desktop.
Zig Zag Effect
body {
background:url(http://i.imgur.com/qKsVr.png);
}
header {
width:240px;
background: white;
}
header:after {
content: " ";
display:block;
position: relative;
width: 240px;
bottom:-30px;
height:30px;
outline:1px solid red;
background: linear-gradient(-45deg, transparent 75%, white 75%) 0 50%,
linear-gradient( 45deg, transparent 75%, white 75%) 0 50%;
background-repeat: repeat-x;
background-size:30px 30px, 30px 30px;
}
<header>Lorem ipsum dolor sit amet .. jk. No Latin here. Filler text extends and stretches this element box.</header>
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"html"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment