"simple-card"
Bootstrap 3.0.0 Snippet by s10004u

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <div class="col-md-3 col-sm-6"> <div class="card"> <img class="center" src="http://via.placeholder.com/300x300" /> <div class="card-icon"> <a class="glyphicon glyphicon-envelope"></a> <a class="glyphicon glyphicon-plus"></a> <a class="glyphicon glyphicon-heart"></a> </div> </div> </div> <div class="col-md-3 col-sm-6"> <div class="card"> <img class="center" src="http://via.placeholder.com/300x300" /> <div class="card-icon"> <a class="glyphicon glyphicon-envelope"></a> <a class="glyphicon glyphicon-plus"></a> <a class="glyphicon glyphicon-heart"></a> </div> </div> </div> <div class="col-md-3 col-sm-6"> <div class="card"> <img class="center" src="http://via.placeholder.com/300x300" /> <div class="card-icon"> <a class="glyphicon glyphicon-envelope"></a> <a class="glyphicon glyphicon-plus"></a> <a class="glyphicon glyphicon-heart"></a> </div> </div> </div> <div class="col-md-3 col-sm-6"> <div class="card"> <img class="center" src="http://via.placeholder.com/300x300" /> <div class="card-icon"> <a class="glyphicon glyphicon-envelope"></a> <a class="glyphicon glyphicon-plus"></a> <a class="glyphicon glyphicon-heart"></a> </div> </div> </div> </div> </div>
img{ width:300px; height:300px; background-color:red; } .card{ position: relative; width: 300px; height: 300px; border:1px solid red; } .card-icon{ position: absolute; top: 0px; right: 0px; min-width: 100%; height: 30px; background-color:gray; } .card-icon a{ float:right; margin-right:20px; margin-top:5px; color:white; text-decoration: none; cursor:pointer; font-size:18px; }

Related: See More


Questions / Comments: