Key concepts:
col-sm-12 col-md-8 col-lg-4 would
make a div take up 100% of the screen width, and a third of the screen width on larger device, and two
thirds in mid-sized.
my-2 - .5 rem or 8px margin on
the y axis, or various other values.
data-bs-theme="dark" to the
HTML element, or add -dark to a class name.
Some quick example text to build on the card title and make up the bulk of the card’s content.
Go somewhereIn this scenario, the column without a width defined (top right) will take up all the width left available.
You can remove col-sm-12 because it will default to 100% anyway if the screen is below
1200px wide, and therefore not subject to the xl. Therefore, each div will take up 100% at
the smaller width.
At a large screen size, the first div is on the left. At a small screen size, it is on top. When the divs are squeezed into the width of phone screens, they are on top of each other.
Screen sizes: xxl >= 1400px; xl >=1200px; lg >= 992px; md >= 768px.
Sm has the default behaviour -
each item takes 100% width.
In this example, the ratios are: xxl: 1:11; xl: 2:10; l: 4:8; and md:
6:6.