Here s my current code.
<div class="col-xl-2 col-lg-12">
<button class="btn btn-secondary w-100" value=1>But.</button>
</div>
<div class="col-xl-4 col-lg-12">
<button class="btn btn-secondary w-100" value="1">Button Down</button>
</div>
<div class="col-xl-4 col-lg-12">
<button class="btn btn-secondary w-100" value="1">Button Up</button>
</div>
<div class="col-xl-2 col-lg-12">
<button class="btn btn-secondary w-100">But.</button>
</div>
And this is how it normally looks.
Each col
has its own rules so they fill the column depending on the window s size. However, there is a small window of resolution where the buttons do this:
Before adopting the right layout:
The "But." buttons inner text overflows, while the "Button down" button text splits in two lines. How can I keep the text from the "But." button from overflowing and keep the text from the "Button down" button to be separated into two lines? I thought I could re-compile Bootstrap to redefine the xl grid breakpoint, but that fills like too much (and a bad practice, to modify Bootstrap like that for such a small issue). Isn t there a way to get the behaviour I want?