...
` |
| `.card-body` | The container for the card's content, used to wrap the main content section. | `...
` |
| `.card-title` | The class for the card title, used to define the card's heading. | `Card Title
` | | `.card-text` | The class for the card's body text, used to add text to 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 card's top. | `
` |
| `.card-img-bottom` | The class for an image at the bottom of the card, typically used to display an image at the card's bottom. | `
` |
| `.card-header` | The header of the card, used to place titles, labels, etc. | `Card Header
` |
| `.card-footer` | The footer of the card, typically used to place author, date, or copyright information. | `` |
| `.card-link` | Used to create links within the card, typically used in conjunction with other card content. | `Card link` |
| `.card-deck` | Used to arrange cards horizontally, with automatic and even spacing between them. | `...
` |
| `.card-columns` | Used to create a multi-column card layout, suitable for a magazine-style layout. | `...
` |
| `.no-gutters` | Removes the column gutters from the grid system, used to remove the default spacing between cards. | `...
` |
| `.card-group` | Groups cards together, and they will automatically adjust to the same height. | `...
` |
| `.card-img-overlay` | Overlays a content layer on top of the card image, typically used to display text or other elements. | `` |
| `.card-subtitle` | The card subtitle, used to display additional information below the title. | `Card subtitle
` | ## Simple Card We can create a simple card using Bootstrap 4's .card and .card-body classes, as shown in the example below: !(#) ## ExampleSimple card
Header
Content
Contextual Cards
Basic card
Primary card
Success card
Info card
Warning card
Danger card
Secondary card
Dark card
Light card
[Try it Β»](#)
* * *
## Image Cards
We can add .card-img-top (image above text) or .card-img-bottom (image below text) to the
Card title
This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
Last updated 3 mins ago
YouTip