Skip to content

Instantly share code, notes, and snippets.

@phawk
Created July 25, 2012 12:39
Show Gist options
  • Select an option

  • Save phawk/3175955 to your computer and use it in GitHub Desktop.

Select an option

Save phawk/3175955 to your computer and use it in GitHub Desktop.
Simple baseline
.grid{
width: 100%;
height: 100%;
background-color: #a9a9a9;
border-top: dotted 1px #000;
background-image: linear-gradient(90deg, transparent 0px, transparent 1.5px, #fff 1px, #fff 2px),
linear-gradient(0, transparent 0px, transparent 1px, #fff 1px, #fff 2px);
background-image: -webkit-linear-gradient(90deg, transparent 0px, transparent 1.5px, #fff 1px, #fff 2px),
-webkit-linear-gradient(0, transparent 0px, transparent 1px, #fff 1px, #fff 2px);
background-image: -moz-linear-gradient(90deg, transparent 0px, transparent 1.5px, #fff 1px, #fff 2px),
-moz-linear-gradient(0, transparent 0px, transparent 1px, #fff 1px, #fff 2px);
/* Change the below value from '30px' to Npx to set the line-height */
background-size: 2px 30px;
position: absolute;
top: 0;
left: 0;
z-index: -1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment