Last active
August 29, 2015 14:04
-
-
Save djfrsn/72dd2c12de1c8c66c754 to your computer and use it in GitHub Desktop.
Centering
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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%); | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
5 CSS Vert-Center Options: https://jsbin.com/honawo/quiet/