Edit This Code:
<!DOCTYPE html>
<html>
<title>W3.CSS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../lib/w3.css">
<style>
div {
  width: 150px;
  height: 100px;
  margin: 24px 0;
  padding: 16px;
}

</style>
<body class="w3-container">

<h2>Yellow Cards</h2>
<p>Create paper-like cards with the w3-card classes, and use a w3-color class to add a color:</p>

<div class="w3-card w3-yellow"><p>w3-card</p></div>
<div class="w3-card-2 w3-yellow"><p>w3-card-2</p></div>
<div class="w3-card-4 w3-yellow"><p>w3-card-4</p></div>
<div class="w3-card-8 w3-yellow"><p>w3-card-8</p></div>
<div class="w3-card-12 w3-yellow"><p>w3-card-12</p></div>
<div class="w3-card-16 w3-yellow"><p>w3-card-16</p></div>
<div class="w3-card-24 w3-yellow"><p>w3-card-24</p></div>

</body>
</html>


Result:
Try it Yourself - © w3schools.com
Privacy Policy