8000 docs(layout): add table for container width values (#5139) · bootstrap-vue/bootstrap-vue@c6623e6 · GitHub
[go: up one dir, main page]

Skip to content

Commit c6623e6

Browse files
authored
docs(layout): add table for container width values (#5139)
Co-authored-by: Jacob Müller
1 parent bc0117c commit c6623e6

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

src/components/layout/README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Responsive containers are new in Bootstrap v4.4. They allow you to specify a con
115115
wide (fluid) until particular breakpoint is reached at which point a `max-width` is applied. For
116116
example, setting prop `fluid` to `'md'` will render a container that is 100% wide to start until the
117117
`'md'` breakpoint is reached, at which point it will remain at that breakpoint's container
118-
`max-width`.
118+
`max-width` until the next breakpoint is reached.
119119

120120
```html
121121
<b-container fluid="sm">
@@ -135,6 +135,9 @@ example, setting prop `fluid` to `'md'` will render a container that is 100% wid
135135
Setting the fluid prop to a breakpoint name translates to the Bootstrap class
136136
`.container-{breakpoint}`.
137137

138+
Refer to the [Grid options section](#grid-options) table below for the default container width
139+
values.
140+
138141
## Rows `<b-row>` and `<b-form-row>`
139142

140143
Rows are wrappers for [columns](#columns-b-col). Each column has horizontal padding (called a
@@ -242,6 +245,23 @@ See how aspects of the Bootstrap grid system work across multiple devices with a
242245
[SCSS variables](/docs/reference/theming), and (if also using custom breakpoint names), via the
243246
BootstrapVue [global configuration](/docs/misc/settings).
244247

248+
### Container sizes
249+
250+
The following table outlines the default container maximum widths at the various breakpoints. These
251+
may vary if you are using custom themed Bootstrap v4 SCSS/CSS.
252+
253+
| Container type | Extra small `<576px` | Small `≥576px` | Medium `≥768px` | Large `≥992px` | Extra large `≥1200px` |
254+
| -------------- | -------------------- | -------------- | --------------- | -------------- | --------------------- |
255+
| _default_ | `100%` | `540px` | `720px` | `960px` | `1140px` |
256+
| `fluid` | `100%` | `100%` | `100%` | `100%` | `100%` |
257+
| `fluid="sm"` | `100%` | `540px` | `720px` | `960px` | `1140px` |
258+
| `fluid="md"` | `100%` | `100%` | `720px` | `960px` | `1140px` |
259+
| `fluid="lg"` | `100%` | `100%` | `100%` | `960px` | `1140px` |
260+
| `fluid="xl"` | `100%` | `100%` | `100%` | `100%` | `1140px` |
261+
262+
Refer to the [Containers `<b-container>` section](#containers-b-container) section above for
263+
additional information
264+
245265
## Auto-layout columns
246266

247267
Utilize breakpoint-specific column classes for easy column sizing without an explicit numbered prop

0 commit comments

Comments
 (0)
0