w1coding.comAll tutorials

W3.CSS Cards

W3.CSS lessons
  1. Environment Setup
  2. Introduction
  3. Container
  4. Colors
  5. Buttons
  6. Buttons1
  7. Grids
  8. Images
  9. Cards
  10. Tables
  11. Forms
  12. Navigation
  13. Sliders
  14. Modals
  15. Dropdown
  16. Cards
  17. Alerts
  18. Accordions
  19. Ardions
  20. Tooltips
  21. Pagination
  22. Navigation
  23. Slideshow
  24. Tabs
  25. Model
  26. Animations
  27. Responsive

W3.CSS Cards

Cards in W3.CSS are used to create organized content blocks with borders and padding. The w3-card class automatically styles a block as a card.

Basic Card Example

<div class="w3-card w3-padding">
  <h3>Card Header</h3>
  <p>This is a simple card with padding.</p>
</div>
    

Card with Image

You can add an image to your card using the w3-image class:

<div class="w3-card w3-padding">
  <img src="example.jpg" class="w3-image" alt="Card Image">
  <p>This card contains an image.</p>
</div>