"Card center material approch"
Bootstrap 4.1.1 Snippet by legraxieux53

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/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="container">
<div class="row">
<div class="container">
<div class="row">
<div class="col-md-4">
<div class="card mb">
<img class="card-img-top" src="http://www.placehold.it/286x180" alt="Card image cap">
<div class="card-body mb">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<button type="button" class="btn btn-primary mb">button</button>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card mb">
<img class="card-img-top" src="http://www.placehold.it/286x180" alt="Card image cap">
<div class="card-body mb">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<button type="button" class="btn btn-primary mb">button</button>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card mb">
<img class="card-img-top" src="http://www.placehold.it/286x180" alt="Card image cap">
<div class="card-body mb">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<button type="button" class="btn btn-primary mb">button</button>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
.mb.card-body{
text-align: center;
}
.mb.btn{
border-radius: 0;
box-shadow: 0.5px 1px 2px hsla(0, 0%, 20%, 1);
}
.mb.btn:hover{
transform: translateY(-2px);
box-shadow: 2px 2px 5px hsla(0, 0%, 20%, 1);
}
.mb.card{
border-radius: 0px / 0px;
overflow: hidden;
box-shadow: 0.5px 1px 2px hsla(0, 0%, 20%, 1);
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: