![]() |
VOOZH | about |
Cards are a convenient means of displaying different types of relevant content. Materialize uses cards for presenting similar objects whose sizes and actions can be changed with the requirement. Here is an example of a basic card.
Materialize provides different types of card according to its requirement, following are the names :
Here is an example shown that uses all the above cards:
Example:
Output:
👁 ImageWe can also make uniformly sized cards using the materialize CSS classes.
i. small - The "small class" is used to make cards of height up to 300px.
<div class="card small"> <!-- Card Content --> </div>
ii. medium - The "medium class" is used to make cards of height up to 400px.
<div class="card medium"> <!-- Card Content --> </div>
iii. large - "The large class" is used to make cards of height up to 500px.
<div class="card large"> <!-- Card Content --> </div>
NOTE:
We can also make cards of different colors and also add different text colors to the card using different colors from the Materialize CSS color palette.
<div class="card purple darken-3"> <!-- Card Content --> </div>