force words to break that don't fit within available space
authorDan Allen <dan@opendevise.com>
Wed, 29 Apr 2020 01:46:10 +0000 (19:46 -0600)
committerDan Allen <dan@opendevise.com>
Wed, 29 Apr 2020 08:11:06 +0000 (02:11 -0600)
* word-wrap: break-word globally
* word-break: break-word in table cells

src/css/body.css
src/css/doc.css

index 1d4db3d..2532306 100644 (file)
@@ -1,3 +1,7 @@
+.body {
+  word-wrap: break-word; /* aka overflow-wrap; used when hyphens are disabled or don't do the trick */
+}
+
 @media screen and (min-width: 1024px) {
   .body {
     display: flex;
index 24107af..5ef1d77 100644 (file)
 .doc .icon i::after {
   hyphens: none;
 }
+
+.doc th.tableblock,
+.doc td.tableblock {
+  word-break: break-word; /* overflow-wrap for table cells; gives space higher precedence than hyphen opportunity */
+}