Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .vertical-center {
- height:65%;
- width:100%;
- text-align: center; /* align the inline(-block) elements horizontally */
- font: 0/0 a; /* remove the gap between inline(-block) elements */
- }
- .vertical-center:before { /* create a full-height inline block pseudo=element */
- content: " ";
- display: inline-block;
- vertical-align: middle; /* vertical alignment of the inline element */
- height: 45%;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement