I know how bootstrap 4 is working with col
instead of col-xs
but the issue I am facing is that when the text within the column is too long to accommodate on a small screen device, the columns start to stack below each other. Is there any way to prevent this and fix the col width to 1/5 of the screen and just cut off the extra text.
Try the below code and compress 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>