col-3) with auto-width columns (like col) inside the same row?Bootstrap's grid allows mixing fixed-width columns (like col-3) with flexible columns (col). The fixed-width columns take their specified width, and the remaining space is divided equally among the flexible columns.
<div class="row"> <!-- columns here --> </div>
The correct order is col-4, then col for auto width, then col-3. This matches the requirement exactly.
<div class="row"> <div class="col-2 bg-primary text-white">A</div> <div class="col bg-success text-white">B</div> <div class="col-3 bg-danger text-white">C</div> </div>
The col-2 and col-3 columns have fixed widths. The col column fills the leftover space. Colors and labels help identify each box visually.
col) inside a .row?The class col alone identifies auto-width columns. So .row > .col selects them directly. Option D tries to exclude fixed-width columns but is unnecessary because fixed-width columns do not have the col class; they use col-{n} classes like col-3.
Using semantic HTML and keeping the DOM order logical ensures screen readers read content in the correct sequence. Hiding or removing focus from columns can confuse users. Role presentation removes meaning and should not be used for content containers.