Bootstrap's lg breakpoint starts at 992px width. It is used for large devices like desktops.
Bootstrap color utilities like bg-danger apply color on all screen sizes. To apply only on medium and up, you combine display utilities or custom CSS, but bg-danger alone is correct for color.
<div class="row"> <div class="col-sm-6 col-lg-4">Box 1</div> <div class="col-sm-6 col-lg-4">Box 2</div> <div class="col-sm-12 col-lg-4">Box 3</div> </div>
At small screens (≥576px), Box 1 and Box 2 each take half width (6 columns), so they share a row. Box 3 takes full width (12 columns) below them. At large screens (≥992px), all three boxes take 4 columns each, fitting in one row equally.
The xl breakpoint starts at 1200px and up, so the correct media query uses min-width: 1200px.
d-none d-md-block), what is an important accessibility consideration?Bootstrap's d-none applies display:none, which removes content from the accessibility tree, so screen readers cannot access it. This is important to consider when hiding content responsively.