From: Eugene Crosser Date: Thu, 24 Dec 2015 06:08:19 +0000 (+0300) Subject: center text labels in buttons X-Git-Url: http://www.average.org/gitweb/?p=pulsecounter.git;a=commitdiff_plain;h=16c5c402a89494b17377d09dee6c97685ce1bdb1 center text labels in buttons --- diff --git a/web/index.html b/web/index.html index f634671..490e21f 100644 --- a/web/index.html +++ b/web/index.html @@ -338,6 +338,7 @@ div#queries { } div.query { display: inline-block; + position: relative; width: 8em; height: 8em; border: solid 1px black; @@ -345,9 +346,13 @@ div.query { cursor: pointer; vertical-align: middle; } -span.query { - display: inline-block; - vertical-align: middle; /* does not work for some reason */ +div.label { + display: block; + width: 100%; + position: absolute; + top: 50%; + transform: translate(0, -50%); + vertical-align: middle; } body { margin: 0px; @@ -365,12 +370,12 @@ body {
-
PREVIOUS WEEK
-
DAY - BEFORE YESTERDAY
-
YESTERDAY
-
TODAY
-
THIS WEEK
+
PREVIOUS WEEK
+
DAY + BEFORE YESTERDAY
+
YESTERDAY
+
TODAY
+
THIS WEEK