From 90375b54332afe815f7169cbf042c59a8fb20e16 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sun, 16 Feb 2020 17:55:19 +0200 Subject: [PATCH] tables.md: make vertical table responsive (#30191) Fixes page overflow on mobile. Co-authored-by: Martijn Cuppens --- site/content/docs/4.3/content/tables.md | 62 +++++++++++++------------ 1 file changed, 32 insertions(+), 30 deletions(-) diff --git a/site/content/docs/4.3/content/tables.md b/site/content/docs/4.3/content/tables.md index cbbe8d6902..12aac11c93 100644 --- a/site/content/docs/4.3/content/tables.md +++ b/site/content/docs/4.3/content/tables.md @@ -401,36 +401,38 @@ Add `.table-sm` to make any `.table` more compact by cutting all cell `padding` Table cells of `` are always vertical aligned to the bottom. Table cells in `` inherit their alignment from `` and are aligned to the the top by default. {{< example >}} -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Heading 1Heading 2Heading 2Heading 4
This cell inherits vertical-align: middle; from the tableThis cell inherits vertical-align: middle; from the tableThis cell inherits vertical-align: middle; from the tableNulla vitae elit libero, a pharetra augue. Cras mattis consectetur purus sit amet fermentum. Vestibulum id ligula porta felis euismod semper.
This cell inherits vertical-align: bottom; from the table rowThis cell inherits vertical-align: bottom; from the table rowThis cell inherits vertical-align: bottom; from the table rowNulla vitae elit libero, a pharetra augue. Cras mattis consectetur purus sit amet fermentum. Vestibulum id ligula porta felis euismod semper.
This cell inherits vertical-align: middle; from the tableThis cell inherits vertical-align: middle; from the tableThis cell is aligned to the top.Nulla vitae elit libero, a pharetra augue. Cras mattis consectetur purus sit amet fermentum. Vestibulum id ligula porta felis euismod semper.
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Heading 1Heading 2Heading 2Heading 4
This cell inherits vertical-align: middle; from the tableThis cell inherits vertical-align: middle; from the tableThis cell inherits vertical-align: middle; from the tableNulla vitae elit libero, a pharetra augue. Cras mattis consectetur purus sit amet fermentum. Vestibulum id ligula porta felis euismod semper.
This cell inherits vertical-align: bottom; from the table rowThis cell inherits vertical-align: bottom; from the table rowThis cell inherits vertical-align: bottom; from the table rowNulla vitae elit libero, a pharetra augue. Cras mattis consectetur purus sit amet fermentum. Vestibulum id ligula porta felis euismod semper.
This cell inherits vertical-align: middle; from the tableThis cell inherits vertical-align: middle; from the tableThis cell is aligned to the top.Nulla vitae elit libero, a pharetra augue. Cras mattis consectetur purus sit amet fermentum. Vestibulum id ligula porta felis euismod semper.
+
{{< /example >}} ### Variants