From edb5a0f85643099511eec7041bb31b3678f16351 Mon Sep 17 00:00:00 2001 From: mntn <85877297+mntn-xyz@users.noreply.github.com> Date: Mon, 9 Aug 2021 10:24:55 -0400 Subject: [PATCH] Fix table margins, padding, and overflow This sets up a simple unstyled table with spacing that matches other elements. --- static/css/typography.css | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/static/css/typography.css b/static/css/typography.css index acd00e2..0005d56 100644 --- a/static/css/typography.css +++ b/static/css/typography.css @@ -163,3 +163,20 @@ sup, sub { sub { top: 0.25rem; } + +/* Tables */ +table { + border-spacing: 0; + margin: 0 0 1.5rem 0; + overflow-wrap: anywhere; +} +th, td { + padding: 0 .75rem; + vertical-align: top; +} +th:first-child, td:first-child { + padding-left: 0; +} +th { + text-align: inherit; +}