From 3a6c45e9a79d362180c22f2100831c44365142fe Mon Sep 17 00:00:00 2001 From: Nick Timkovich Date: Wed, 9 Aug 2017 15:51:18 -0500 Subject: [PATCH] Fix vertical middling of elements I guess the W3C prefers you to center horizontal things and middle vertical things. `vertical-align` is also invalid on `display: block` elements. --- css/logo-nav.css | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/css/logo-nav.css b/css/logo-nav.css index 55be2ce1..e9b88fde 100755 --- a/css/logo-nav.css +++ b/css/logo-nav.css @@ -154,7 +154,7 @@ body { width: 95%; } .img-container img { - vertical-align: center; + vertical-align: middle; } /* Reusable elements */ @@ -291,7 +291,7 @@ body { box-sizing: border-box; display: inline-block; padding: 2%; - vertical-align: center; + vertical-align: middle; width: 18%; } .companies .col img{ @@ -370,8 +370,7 @@ body { display: block; height: 100%; margin: 0 auto; - text-align:center; - vertical-align: center; + text-align: center; } /* Used to make cursor turn to link specific cursor when hovering over architecture buttons */ .bt, .bt1, .bt2 {