]> git.scottworley.com Git - tablify/commitdiff
Center text in each cell
authorScott Worley <scottworley@scottworley.com>
Sat, 24 Aug 2024 08:52:41 +0000 (01:52 -0700)
committerScott Worley <scottworley@scottworley.com>
Wed, 2 Oct 2024 09:40:47 +0000 (02:40 -0700)
Changelog
src/lib.rs

index 2ec30f7a4d16aa46696fdc8e837182810a1aec4e..347ca9e1eb01fcebe7bc42c2712678cbdee70826 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -1,4 +1,5 @@
 ## [Unreleased]
 ## [Unreleased]
+- Center text in each cell
 
 ## [0.2.1] - 2024-08-20
 - A little more space up top
 
 ## [0.2.1] - 2024-08-20
 - A little more space up top
index fbafcb1726863ebac3aba8407b174820a1038c56..c261c782e8a0e69e478f61d04fe162687bf21c7b 100644 (file)
@@ -9,6 +9,7 @@ const HEADER: &str = "<!DOCTYPE html>
   <meta charset=\"utf-8\">
   <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
   <style>
   <meta charset=\"utf-8\">
   <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
   <style>
+    td { text-align: center; }
     /* h/t https://wabain.github.io/2019/10/13/css-rotated-table-header.html */
     th, td { white-space: nowrap; }
     th { text-align: left; font-weight: normal; }
     /* h/t https://wabain.github.io/2019/10/13/css-rotated-table-header.html */
     th, td { white-space: nowrap; }
     th { text-align: left; font-weight: normal; }