Bootstrap ClassNames
Bootstrap ClassNames
com]
BOOTSTRAP CLASSNAMES
1
WSA [www.webstackacademy.com]
2
WSA [www.webstackacademy.com]
• my-3: This class adds a vertical margin (spacing) of 3 units, which might be
measured in pixels or another unit, both at the top and bottom of the element.
• card: it is a bordered box with some padding around its content. It includes
options for headers, footers, content, colors, etc.
• "p-3": This class represents padding applied to all sides of the element. The
p-3 class is likely a shorthand notation provided by a CSS framework to add
consistent padding.
• "rounded": This class rounds the corners of the element, giving it a visually
rounded appearance.
• card-img-top: it is used to style the element as the top image within a card
component.
• mx-auto: This class is used to center-align the element horizontally within its
container. "mx" stands for margin in the x-axis (left and right).
• card-body: class that provides styling for a card component's body.
• "d-flex": It is used to enable a flex display mode on the element, allowing its
children to be aligned and organized in a flex layout.
• "flex-column": This class sets the flex direction to column, arranging the
element's children vertically within the flex container.
• card-title: is used to add card titles to any heading element.
• "mt-auto": This class uses Bootstrap's utility class to apply an "auto" margin
on the top side of the element. This helps to push the element to the bottom of
its container, giving it maximum available vertical space.
• container-fluid: this class provides a full width container, spanning the entire
width of the viewport.