Card
I am Lazy’s cards provide a flexible and extensible content container with multiple variants and options.
Table of contents
Examples
Stacked
Card title
card subtitle
Some quick example text to build on the card title and make up the bulk of the card's content.
Go somewhere<div class="card">
<img class="card-thumb" src="..." alt="Card image">
<div class="card-body">
<h3 class="card-title">Card title</h3>
<p class="card-subtitle">card subtitle</p>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
Horizontal
Card title
Card subtitle
Some quick example text to build on the card title and make up the bulk of the card's content.
Go somewhere<div class="card-horizontal">
<div class="card-left">
<img class="card-thumb" src="..." alt="Card image">
</div>
<div class="card-right">
<h3 class="card-title">Card title</h3>
<p class="card-subtitle">Card subtitle</p>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
Sizing
Card work with cards of all sizes, including default card. use .card-{sm|md|lg|xl}
class to get the desired size. By default stacked cards use .card-sm
while horizontal cards use .card-xl
<div class="card card-no-shadow card-bordered card-sm">
<div class="card-body">
This is some text within a card body.
</div>
</div>
<div class="card card-no-shadow card-bordered card-lg">
<div class="card-body">
This is some text within a card body.
</div>
</div>
<div class="card card-no-shadow card-bordered card-md">
<div class="card-body">
This is some text within a card body.
</div>
</div>
<div class="card-horizontal">
<div class="card-right">
<div class="card-body">
This is some text within a card body.
</div>
</div>
</div>
Border
use .card-bordered
to display the border on the card.By default horizontal cards display borders while stacked cards don’t.
<div class="card">
<div class="card-body">
This is some text within a card body.
</div>
</div>
<div class="card card-no-shadow">
<div class="card-body">
This is some text within a card body.
</div>
</div>
<div class="card card-no-shadow card-bordered">
<div class="card-body">
This is some text within a card body.
</div>
</div>
Shadow
use .card-shadow
to display the shadow on the card.By default stacked cards display shadows while horizontal cards don’t.
<div class="card">
<div class="card-body">
This is some text within a card body.
</div>
</div>
<div class="card-horizontal">
<div class="card-right">
<div class="card-body">
This is some text within a card body.
</div>
</div>
</div>
use .card-no-shadow
to hide the shadow on the card.
<div class="card">
<div class="card-body">
This is some text within a card body.
</div>
</div>
<div class="card card-no-shadow">
<div class="card-body">
This is some text within a card body.
</div>
</div>
Shadow sizing
use .card-shadow-{sm|md|lg|xl}
class to get the desired size.
Card title
card subtitle
Some quick example text to build on the card title and make up the bulk of the card's content.
Go somewhereCard title
card subtitle
Some quick example text to build on the card title and make up the bulk of the card's content.
Go somewhere<div class="card">
<img class="card-thumb" src="..." alt="Card image">
<div class="card-body">
<h3 class="card-title">Card title</h3>
<p class="card-subtitle">card subtitle</p>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
<div class="card card-shadow-xl">
<img class="card-thumb" src="..." alt="Card image">
<div class="card-body">
<h3 class="card-title">Card title</h3>
<p class="card-subtitle">card subtitle</p>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
Content type stacked card
Cards support a wide variety of content. Below are examples of what’s supported.
Body
The building block of a card is the .card-body
. Use it whenever you need a padded section within a card.
<div class="card">
<div class="card-body">
This is some text within a card body.
</div>
</div>
Title,Subtitle and text
Card title
Card subtitle
Some quick example text to build on the card title and make up the bulk of the card's content.
<div class="card">
<img class="card-thumb" src="..." alt="Card image">
<div class="card-body">
<h4 class="card-title">Card title</h4>
<p class="card-subtitle">Card subtitle</p>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
Header and Footer
Header
Card title
Card subtitle
Some quick example text to build on the card title and make up the bulk of the card's content.
<div class="card">
<div class="card-header">
<h3>Header</h3>
</div>
<div class="card-body">
<h4 class="card-title">Card title</h4>
<p class="card-subtitle">Card subtitle</p>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
<div class="card-footer">
Footer
</div>
</div>
Content type horizontal card
Cards support a wide variety of content. Below are examples of what’s supported.I recommend always using .card-left
and .card-right
on your horizontal cards.
Left Side
Images
.card-thumb
places an image to the left of the card.
This is the right side of the card.
<div class="card-horizontal">
<div class="card-left">
<img class="card-thumb" src="..." alt="Card image">
</div>
<div class="card-right">
<p class="card-text"> This is the right side of the card.</p>
</div>
</div>
Right Side
Title,Subtitle and text
Card title
Card subtitle
Some quick example text to build on the card title and make up the bulk of the card's content.
Go somewhere<div class="card-horizontal">
<div class="card-left">
<img class="card-thumb" src="..." alt="Card image">
</div>
<div class="card-right">
<h3 class="card-title">Card title</h3>
<p class="card-subtitle">Card subtitle</p>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>