Responsive containers that stop at the breakpoint #41027
-
Hi, I would like to propose a responsive container that stops at the defined breakpoint. This is kind of a mix between So to show some code:
How could this be implemented? The current logic for generating the container classes with sass is quite complicated to understand for me. See https://github.com/twbs/bootstrap/blob/main/scss/_containers.scss for the current code |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I'm not quite sure I understand what you want to achieve. But couldn't your example be realized in this way? If so, you could simply create your own max-width classes (mw-sm .. mw-lg .. mw-xxl ...) and then combine them. |
Beta Was this translation helpful? Give feedback.
I'm not quite sure I understand what you want to achieve. But couldn't your example be realized in this way?
<div class="container" style="max-width:960px"> ... </div>
If so, you could simply create your own max-width classes (mw-sm .. mw-lg .. mw-xxl ...) and then combine them.
<div class="container mw-lg"> ... </div>