Skip to content

Instantly share code, notes, and snippets.

@gustavom
Created May 5, 2016 21:01
Show Gist options
  • Save gustavom/7d91aee2262c820f81edb4c3952d6c05 to your computer and use it in GitHub Desktop.
Save gustavom/7d91aee2262c820f81edb4c3952d6c05 to your computer and use it in GitHub Desktop.
mixin vertical align
@mixin vtal(){
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
@gustavom
Copy link
Author

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