From 9a5de07cfb988f93e1f930e112d5f1fcea2e5f30 Mon Sep 17 00:00:00 2001 From: Lewis Date: Fri, 29 Jun 2018 11:22:25 +1000 Subject: [PATCH] Fix table styleing --- ngPrint.css | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/ngPrint.css b/ngPrint.css index 90857c7..6b2fab9 100644 --- a/ngPrint.css +++ b/ngPrint.css @@ -10,7 +10,35 @@ } #printSection, #printSection * { - display: inline; + display: inline-block; + } + + table { + table-layout: auto; + } + + td { + border: 1px solid #ccc; + width: 160px; + height: auto; + } + + th { + border: 1px solid #ccc; + width: 160px; + height: auto; + } + + th:nth-child(2) { + border: 1px solid #ccc; + width: 210px; + height: auto; + } + + td:nth-child(2) { + border: 1px solid #ccc; + width: 210px; + height: auto; } #printSection { @@ -18,4 +46,4 @@ left:0; top:0; } -} +} \ No newline at end of file