Skip to content

Instantly share code, notes, and snippets.

@surajmandalcell
Last active March 26, 2017 12:33
Show Gist options
  • Save surajmandalcell/6ffd8d4d75c271271753d4d111e40754 to your computer and use it in GitHub Desktop.
Save surajmandalcell/6ffd8d4d75c271271753d4d111e40754 to your computer and use it in GitHub Desktop.
/* https://rawgit.com/surajmandalcell/6ffd8d4d75c271271753d4d111e40754/raw/f90930780358332bcb2a2f16cc9053e48a310efc/cssQuick.css */
.center-it-x{
margin-left: 50%;
transform: translateX(-50%);
}
.center-it-y{
margin-top: 50%;
transform: translateY(-50%);
}
.center-it-all{
margin-top: 50%;
margin-left: 50%;
transform: translate(-50%, -50%);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment