...
` |
| `.card-body` | A container that holds the card's content, typically used for text, titles, etc. | `...
` |
| `.card-title` | The card title class, usually containing the main title of the card. | `Card Title
` | | `.card-text` | The card text class, usually containing the main body content of the card. | `Some quick example text...
` | | `.card-img-top` | The class for an image at the top of the card, typically used to display an image at the top. | `
` |
| `.card-img-bottom` | The class for an image at the bottom of the card, typically used to display an image at the bottom. | `
` |
| `.card-header` | The header area of the card, used for placing titles or other content. | `Card Header
` |
| `.card-footer` | The footer area of the card, used for placing additional information or action buttons, etc. | `` |
| `.card-link` | Used to create links within the card. | `Card link` |
| `.card-deck` | Deprecated in Bootstrap 5, use `row` and `col` instead. | `...
` |
| `.card-group` | Deprecated in Bootstrap 5, use `row` and `col` instead. | `...
` |
| `.card-columns` | Uses a multi-column layout, with cards arranged in a masonry flow. | `...
` |
| `.card-subtitle` | The subtitle of the card, usually displayed below the title. | `Card subtitle
` | | `.card-img-overlay` | Overlays a content layer on the card image, often used to display text or other elements. | `` | ## Simple Card We can create a simple card using Bootstrap5's .card and .card-body classes. A card can include a header, content, footer, and various color settings. Example: !(#) ## ExampleSimple card
Header
Content
Contextual Cards
Basic Card
Primary Card
Success Card
Info Card
Warning Card
Danger Card
Secondary Card
Dark Card
Light Card
tag within the .card-body class; if it's the last line, the bottom margin can be removed. The .card-link class is used to style links. ## Example
[Try it Β»](#)
* * *
## Image Cards
We can add .card-img-top (image above text) or .card-img-bottom (image below text) to the
YouTip