Use .rounded-lg
or .rounded-sm
for larger or smaller border-radius.
.overflow-auto
on an element with set width and height dimensions. By design, this content will vertically scroll.
.overflow-hidden
on an element with set width and height dimensions.
In CSS, margin
properties can utilize negative values (padding
cannot). As of 4.2, weâve added negative margin utilities for every non-zero integer size listed above (e.g., 1
, 2
, 3
, 4
, 5
). These utilities are ideal for customizing grid column gutters across breakpoints.
The syntax is nearly the same as the default, positive margin utilities, but with the addition of n
before the requested size. Hereâs an example class thatâs the opposite of .mt-1
:
Add .stretched-link
to a link to make its containing block clickable via a ::after
pseudo element. In most cases, this means that an element with position: relative;
that contains a link with the .stretched-link
class is clickable.
Cards have position: relative
by default in Bootstrap, so in this case you can safely add the .stretched-link
class to a link in the card without any other HTML changes.
Multiple links and tap targets are not recommended with stretched links. However, some position
and z-index
styles can help should this be required.
Some quick example text to build on the card title and make up the bulk of the card's content.
Go somewhereMedia objects do not have position: relative
by default, so we need to add the .position-relative
here to prevent the link from stretching outside the media object.
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
Go somewhereBold text.
Bolder weight text (relative to the parent element).
Normal weight text.
Light weight text.
Lighter weight text (relative to the parent element).
Italic text.