mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-21 04:41:36 +02:00
tables.md: make vertical table responsive (#30191)
Fixes page overflow on mobile. Co-authored-by: Martijn Cuppens <martijn.cuppens@gmail.com>
This commit is contained in:
@@ -401,7 +401,8 @@ Add `.table-sm` to make any `.table` more compact by cutting all cell `padding`
|
||||
Table cells of `<thead>` are always vertical aligned to the bottom. Table cells in `<tbody>` inherit their alignment from `<table>` and are aligned to the the top by default.
|
||||
|
||||
{{< example >}}
|
||||
<table class="table align-middle">
|
||||
<div class="table-responsive">
|
||||
<table class="table align-middle">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="w-25">Heading 1</th>
|
||||
@@ -430,7 +431,8 @@ Table cells of `<thead>` are always vertical aligned to the bottom. Table cells
|
||||
<td>Nulla vitae elit libero, a pharetra augue. Cras mattis consectetur purus sit amet fermentum. Vestibulum id ligula porta felis euismod semper.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</table>
|
||||
</div>
|
||||
{{< /example >}}
|
||||
|
||||
### Variants
|
||||
|
Reference in New Issue
Block a user