aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2018-07-15 22:51:47 -0700
committerMark Otto <[email protected]>2018-07-20 18:18:48 -0500
commit28b9bc068f502f01db1209b14133e492de0f7b8e (patch)
tree0bbd4908a377c4887eb44e59450a1623a3f79b88
parenteb81c39f2c36d88d4ebc062a2fa179980827e8be (diff)
downloadbootstrap-28b9bc068f502f01db1209b14133e492de0f7b8e.tar.xz
bootstrap-28b9bc068f502f01db1209b14133e492de0f7b8e.zip
Improve responsive table docs
- Splits the examples with code snippets - Adds note about possible broken visuals Closes #25813
-rw-r--r--site/docs/4.1/content/tables.md9
1 files changed, 4 insertions, 5 deletions
diff --git a/site/docs/4.1/content/tables.md b/site/docs/4.1/content/tables.md
index e3303666b..8799d47f2 100644
--- a/site/docs/4.1/content/tables.md
+++ b/site/docs/4.1/content/tables.md
@@ -764,8 +764,10 @@ Across every breakpoint, use `.table-responsive` for horizontally scrolling tabl
Use `.table-responsive{-sm|-md|-lg|-xl}` as needed to create responsive tables up to a particular breakpoint. From that breakpoint and up, the table will behave normally and not scroll horizontally.
-<div class="bd-example">
+**These tables may appear broken until their responsive styles apply at specific viewport widths.**
+
{% for bp in site.data.breakpoints %}{% unless bp.breakpoint == "xs" %}
+<div class="bd-example">
<div class="table-responsive{{ bp.abbr }}">
<table class="table">
<thead>
@@ -818,15 +820,12 @@ Use `.table-responsive{-sm|-md|-lg|-xl}` as needed to create responsive tables u
</tbody>
</table>
</div>
-{% endunless %}{% endfor %}
</div>
-
{% highlight html %}
-{% for bp in site.data.breakpoints %}{% unless bp.breakpoint == "xs" %}
<div class="table-responsive{{ bp.abbr }}">
<table class="table">
...
</table>
</div>
-{% endunless %}{% endfor %}
{% endhighlight %}
+{% endunless %}{% endfor %}