I'm familiar with how bootstrap 4 uses col
instead of col-xs
, but I've encountered an issue. When the text within a column is too long to fit on a small screen, the columns begin to stack below each other. Is there a way to prevent this and set the col width to 1/5 of the screen while cutting off the excess text? Give the code below a try and adjust your browser width.
<div class="container-fluid">
<div class="row">
<div class="col">some loong loong loong loong loong text</div>
<div class="col">some loong loong loong loong loong text</div>
<div class="col">some loong loong loong loong loong text</div>
<div class="col">some loong loong loong loong loong text</div>
<div class="col">some loong loong loong loong loong text</div>
</div>