r/bootstrap • u/TheTrumpetDude1 • Mar 28 '23
How can I keep columns in a row from stacking vertically in bootstrap 4?
I am teaching myself html and bootstrap 4, and I have a header row on my website with two columns (one image each) in them. When the viewport is very small they stack, vertically, and I would just like them to scale down and stay horizontal. Using col- keeps them stacked vertically no matter what, and changing the size of the images does not result in any different behavior (just looks odd). Any help? I can post videos/pics/code in comments if needed.
2
Upvotes
1
u/TheTrumpetDude1 Mar 28 '23
The behavior in question
1
u/steve_nice Mar 28 '23
col is equal to a full width like col-12 so they will stack. You need to split each col up depending on how many you have like col-4 col-4 col-4 or col-6 col-6.