m-3 or p-2?Bootstrap spacing utilities use rem units by default. This means spacing scales relative to the root font size, making layouts more flexible and accessible.
7 equal to 3.5rem in Bootstrap's spacing scale. Which SCSS code snippet correctly modifies the spacing scale?$spacers: (0: 0, 1: 0.25rem, 2: 0.5rem, 3: 1rem, 4: 1.5rem, 5: 3rem, 7: 3.5rem);
To add a new spacing value without overwriting the entire map, use map-merge to merge the new key-value pair into the existing $spacers map.
7: 3.5rem to the Bootstrap spacing scale and using class="m-7" on a div, what will be the margin size around the div?m-7.By adding 7: 3.5rem to the spacing scale, the class m-7 applies a margin of 3.5rem on all sides of the element.
7 to Bootstrap and want to write a CSS rule to style all elements with the class p-7, which selector is correct?Classes in CSS are selected with a dot . followed by the class name exactly as it appears in HTML. So .p-7 targets elements with class p-7.
Increasing spacing can push content outside the visible area on small screens, causing horizontal scrolling which harms accessibility. Responsive design should be maintained to avoid this.
