I have 5 columns in Bootstrap 3, as seen in the screenshot below. How to distribute the 5 cols across the screen without spaces in the right and left of it?
Asked
Active
Viewed 181 times
-2
-
1Welcome to Stack Overflow! You need to give us your HTML/CSS. We cannot debug your code from a screenshot. Please read [how to create a minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example). – disinfor Dec 21 '20 at 21:51
1 Answers
1
You can do this with a parent with 100% width and children with any .col-[whatever you want] class on each child (or just .col on each child if you don't want them to adjust for screen size). Documentation: https://getbootstrap.com/docs/3.3/css/
You can alternatively create your own CSS with a container with width:100% and display:flex, and children that each have width: 20%.
.parent {
width: 100%;
display: flex;
}
.child {
width: 20%;
}

David Frederick
- 182
- 1
- 7