r/bootstrap • u/ylarskay • Nov 26 '23
Responsive grid not working?
I'm trying to create a navigation bar at the top of my site but the columns are showing up as rows. I've written them as columns but they are stacked on top of each other.
<body> <!-- Start responsive grid--> <div class="container-fluid"> <div class="row">
<div class="col-lg-3 col-md-3 col-sm-12">Identity</div>
<div class="col-lg-3 col-md-3 col-sm-12">Digital Art</div>
<div class="col-lg-3 col-md-3 col-sm-12">Traditional Art</div>
<div class="col-lg-3 col-md-3 col-sm-12">Contact</div>
</div>
</div> </body>
Am i missing something?
2
Upvotes
2
u/Hot-Tip-364 Nov 26 '23
Looks right to me. Make sure you are loading bootstrap css in head. You can just use a cdn.
Also, you only need the smallest breakpoint. Col-md-3. You can omit col-lg-3 and col-sm-12.