Skip to content

Instantly share code, notes, and snippets.

@djfrsn
Last active August 29, 2015 14:04
Show Gist options
  • Select an option

  • Save djfrsn/72dd2c12de1c8c66c754 to your computer and use it in GitHub Desktop.

Select an option

Save djfrsn/72dd2c12de1c8c66c754 to your computer and use it in GitHub Desktop.
Centering
// Horizontal
---Images
.winedetails_label img
{
display: block;
margin-left:auto;
margin-right:auto;
}
// Vertical Align
Source//http://zerosixthree.se/vertical-align-anything-with-just-3-lines-of-css/
.parent-element
{
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
transform-style: preserve-3d;
}
.element /*element to align vert */
{
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
@djfrsn
Copy link
Author

djfrsn commented Jan 6, 2015

5 CSS Vert-Center Options: https://jsbin.com/honawo/quiet/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment