Cards

Cards, along with List View, is a great way to contain and orginize your information. Cards contain unique related data, for example, a photo, text, and link all about a single subject. Cards are typically an entry point to more complex and detailed information.

Lets look at a basic card HTML layout

Where:

  • - Card container

    • <div class="card-header"> - Card header. Mostly used to display card title. Optional

    • <div class="card-footer"> - Card footer is used for some additional information or for custom actions/links. Optional

    • <div class="card-content"> - Main container for card content. Required

    • <div class="card-content card-content-padding"> - Additional card-content-padding used to add extra padding to card-content

    • card-outline - additional class that can be added to card element to make it outline

    • no-shadow - additional class that can be added to card element to remove its shadow

    • no-border - additional class that can be added to card element to remove its border (for outline card)

Note that “card-header” and “card-footer” have a flexbox layout (display:flex) where as items have a center vertical alignment. If you need to align items to top or to bottom of header/footer, then you may use additional typography classes, for example:

- align header items by header top line