Wie man erstellt: Produktcard
- Previous page Profile card
- Next page Warning
Lernen Sie, wie man ein Produktcard mit CSS erstellt.

Maßgeschneiderte Jeans
19,99 $
Eine Beschreibung der Jeans. Super schlank und bequem lorem ipsum lorem Jeansum. Lorem Jeansun Denim lorem Jeansum.
Wie man ein Produktcard erstellt
Erster Schritt - HTML hinzufügen:
<div class="card"> <img src="jeans3.jpg" alt="Jeans" style="width:100%"> <h1>Maßgeschneiderte Jeans</h1> <p class="price">19,99 $</p> <p>Eine Beschreibung der Jeans...</p> <p><button>Hinzufügen zum Warenkorb</button></p> </div>
Zweiter Schritt - CSS hinzufügen:
.card { box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); max-width: 300px; margin: auto; text-align: center; font-family: arial; {} .price { color: grey; font-size: 22px; {} .card button { border: none; outline: 0; padding: 12px; color: white; background-color: #000; text-align: center; cursor: pointer; width: 100%; font-size: 18px; {} .card button:hover { opacity: 0.7; {}
- Previous page Profile card
- Next page Warning