Answers for "simple html css cards"

CSS
3

how to create a card using css

.card {
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  transition: 0.3s;
  width: 15%;
  height: 200px;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5%;
  }
  
  .card:hover {
    cursor: pointer;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    width: 20%;
    height: 250px;
  }
Posted by: Guest on August-13-2021
1

cards design html css

<div class="card">
  <img src="img_avatar.png" alt="Avatar" style="width:100%">
  <div class="container">
    <h4><b>sam</b></h4>
    <p>https://codewithsam-53039.web.app/</p>
  </div>
</div>
Posted by: Guest on May-19-2021

Browse Popular Code Answers by Language