"lifted card"
Bootstrap 4.0.0 Snippet by Peter1975

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="row"> <div class="card-container centermx drop-shadow lifted"> <div class="card"> <div class="card-header "> Featured </div> <div class="card-body"> <p>Lifted corners</p> </div> <div class="card-footer condensed"> This is a muted footer </div> </div> </div> <div class="card-container centermx drop-shadow lifted"> <div class="card"> <div class="card-header "> Featured </div> <div class="card-body"> <p>Lifted corners</p> </div> <div class="card-footer condensed"> This is a muted footer </div> </div> </div> <div class="card-container centermx drop-shadow lifted"> <div class="card"> <div class="card-header "> Featured </div> <div class="card-body"> <p>Lifted corners</p> </div> <div class="card-footer condensed"> This is a muted footer </div> </div> </div> <div class="card-container centermx drop-shadow lifted"> <div class="card"> <div class="card-header "> Featured </div> <div class="card-body"> <p>Lifted corners</p> </div> <div class="card-footer condensed"> This is a muted footer </div> </div> </div> <div class="card-container centermx drop-shadow lifted"> <div class="card"> <div class="card-header "> Featured </div> <div class="card-body"> <p>Lifted corners</p> </div> <div class="card-footer condensed"> This is a muted footer </div> </div> </div> <div class="card-container centermx drop-shadow lifted"> <div class="card"> <div class="card-header "> Featured </div> <div class="card-body"> <p>Lifted corners</p> </div> <div class="card-footer condensed"> This is a muted footer </div> </div> </div> </div>
.card-container{ width: 400px; height: 200px; border: none; padding: none; margin: 10px 10px 10px 10px; } .card{ width: 400px; height: 200px; z-index: 10; } .centermx{ margin-left:auto; margin-right: auto; } .card-header { font-size: 18px; line-height: 0.6rem; font-weight: bold; text-align: center; border-bottom: none; background-color: #CCF; } .card-body{ padding: 5px 10px 5px 10px; } .card-footer { font-size: 12px; line-height: 0.2rem; font-weight: bold; text-align: center; border-top: none; background-color: #DDD; } .condensed{ color: rgba(0,0,0,0.5) } .drop-shadow { position: relative; border: 1px solid #DDD; /*width: 40%;*/ /*padding: 1em;*/ margin-top: 2em; background: #fff; -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) , 0 0 40px rgba(0, 0, 0, 0.1) inset; -mox-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) , 0 0 40px rgba(0, 0, 0, 0.1) inset; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) , 0 0 40px rgba(0, 0, 0, 0.1) inset; } .drop-shadow:before, .drop-shadow:after { content: ""; position: absolute; z-index: -2; } .card-body p { font-size: 16px; font-weight: bold; } .lifted { -moz-border-radius: 4px; border-radius: 4px; border: none; } .lifted:before, .lifted:after { bottom: 12px; left: 10px; width: 50%; height: 20%; max-width: 300px; max-height: 100px; -webkit-box-shadow: 0 15px 10px rgba(0, 0, 0, 0.7); -mox-box-shadow: 0 15px 10px rgba(0, 0, 0, 0.7); box-shadow: 0 15px 10px rgba(0, 0, 0, 0.7); -webkit-transform: rotate(-3deg); -moz-transform: rotate(-3deg); -ms-transform: rotate(-3deg); -o-transform: rotate(-3deg); transform: rotate(-3deg); } .lifted:after { right: 10px; left: auto; -webkit-transform: rotate(3deg); -moz-transform: rotate(3deg); -ms-transform: rotate(3deg); -o-transform: rotate(3deg); transform: rotate(3deg); }

Related: See More


Questions / Comments: