Skip to content

Instantly share code, notes, and snippets.

@tylergaw
Created April 19, 2012 04:17
Show Gist options
  • Save tylergaw/2418522 to your computer and use it in GitHub Desktop.
Save tylergaw/2418522 to your computer and use it in GitHub Desktop.
Centered Vertical line with CSS Gradient
/**
* Centered Vertical line with CSS Gradient
*/
div {
background: #fff;
background: linear-gradient(180deg, transparent, #353535, transparent);
background-position: 50%;
background-repeat: repeat-y;
background-size: 1px auto;
}
/* Setup */
div {
border: 1px solid #ccc;
height: 300px;
width: 90%;
}
{"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