Commit 28b9bc06 authored by Mark Otto's avatar Mark Otto Committed by Mark Otto
Browse files

Improve responsive table docs

- Splits the examples with code snippets
- Adds note about possible broken visuals

Closes #25813
parent eb81c39f
2 merge requests!28721Hot test,!27561Adds font-weight-medium to font weight classes
Showing with 4 additions and 5 deletions
+4 -5
......@@ -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 %}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment