<div class="row"> <div class="col-4">Column 1</div> <div class="col-4">Column 2</div> <div class="col-4">Column 3</div> <div class="col-4">Column 4</div> </div>
Bootstrap grid rows support up to 12 columns total. If you add more, extra columns wrap to the next line automatically.
<button>Click me</button>
Bootstrap buttons need the btn class plus a style class like btn-primary. Missing btn or using wrong class names breaks styling.
img-fluid class on an image inside a Bootstrap container?<div class="container"> <img src="image.jpg" alt="Sample"> </div>
Without img-fluid, images keep their original size and can overflow their container on small screens, causing horizontal scroll.
<nav class="navbar navbar-expand-lg navbar-light bg-light"> <a class="navbar-brand" href="#">Brand</a> </nav>
Without ARIA roles or landmarks, screen readers may not recognize the navbar as navigation, making it harder for users relying on assistive tech to navigate.
.btn-primary background color with your own CSS. Which selector will reliably override Bootstrap styles without using !important?Bootstrap uses .btn.btn-primary selector. To override without !important, your selector must be at least as specific. button.btn.btn-primary is more specific and will override Bootstrap styles.
