Skip to content

Commit

Permalink
v4 docs Update Table Responsive to include `.table-responsive{-sm|-md…
Browse files Browse the repository at this point in the history
…|-lg|-xl}` (twbs#23665)
  • Loading branch information
pat270 authored and mdo committed Sep 4, 2017
1 parent 6c402a6 commit 59631a6
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions docs/4.0/content/tables.md
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,9 @@ Regular table background variants are not available with the dark table, however

## Responsive tables

Create responsive tables by adding `.table-responsive` to any `.table` to make them scroll horizontally on small devices (under 768px). When viewing on anything larger than 768px wide, you will not see any difference in these tables.
Create responsive tables by adding `.table-responsive{-sm|-md|-lg|-xl}` to any `.table` to make them scroll horizontally at each `max-width` breakpoint 575px, 767px, 991px, and 1199px, respectively.

For responsive tables that always scroll horizontally when the table is wider than its container, add the `.table-responsive` class on `.table`.

{% callout warning %}
#### Vertical clipping/truncation
Expand All @@ -600,6 +602,9 @@ Responsive tables make use of `overflow-y: hidden`, which clips off any content
<th>Table heading</th>
<th>Table heading</th>
<th>Table heading</th>
<th>Table heading</th>
<th>Table heading</th>
<th>Table heading</th>
</tr>
</thead>
<tbody>
Expand All @@ -611,6 +616,9 @@ Responsive tables make use of `overflow-y: hidden`, which clips off any content
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
</tr>
<tr>
<th scope="row">2</th>
Expand All @@ -620,6 +628,9 @@ Responsive tables make use of `overflow-y: hidden`, which clips off any content
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
</tr>
<tr>
<th scope="row">3</th>
Expand All @@ -629,11 +640,14 @@ Responsive tables make use of `overflow-y: hidden`, which clips off any content
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
</tr>
</tbody>
</table>

<table class="table table-bordered table-responsive">
<table class="table table-bordered table-responsive-lg">
<thead>
<tr>
<th>#</th>
Expand Down

0 comments on commit 59631a6

Please sign in to comment.