]> git.scottworley.com Git - tablify/blobdiff - src/lib.rs
Center text in each cell
[tablify] / src / lib.rs
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>
+    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; }