Skip to content

Instantly share code, notes, and snippets.

@frhd
Created February 7, 2014 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frhd/8861912 to your computer and use it in GitHub Desktop.
Save frhd/8861912 to your computer and use it in GitHub Desktop.
css less negative numbers and absolute centering
@divwith: 1600px;
.superdiv {
overflow: auto;
height: 100%;
position: absolute;
width: @divwith;
margin-left: -(@divwith/2);
left: 50%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment