"Shopping Cart Bootstrap 4 + FontAwesome ( Beta 2 )"
Bootstrap 4.0.0 Snippet by SnowFox

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.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="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<script src="https://use.fontawesome.com/c560c025cf.js"></script>
<div class="container">
<div class="card shopping-cart">
<div class="card-header bg-dark text-light">
<i class="fa fa-shopping-cart" aria-hidden="true"></i>
Shipping cart
<a href="" class="btn btn-outline-info btn-sm pull-right">Continiu shopping</a>
<div class="clearfix"></div>
</div>
<div class="card-body">
<!-- PRODUCT -->
<div class="row">
<div class="col-12 col-sm-12 col-md-2 text-center">
<img class="img-responsive" src="http://placehold.it/120x80" alt="prewiew" width="120" height="80">
</div>
<div class="col-12 text-sm-center col-sm-12 text-md-left col-md-6">
<h4 class="product-name"><strong>Product Name</strong></h4>
<h4>
<small>Product description</small>
</h4>
</div>
<div class="col-12 col-sm-12 text-sm-center col-md-4 text-md-right row">
<div class="col-3 col-sm-3 col-md-6 text-md-right" style="padding-top: 5px">
<h6><strong>25.00 <span class="text-muted">x</span></strong></h6>
</div>
<div class="col-4 col-sm-4 col-md-4">
<div class="quantity">
<input type="button" value="+" class="plus">
<input type="number" step="1" max="99" min="1" value="1" title="Qty" class="qty"
size="4">
<input type="button" value="-" class="minus">
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
.quantity {
float: left;
margin-right: 15px;
background-color: #eee;
position: relative;
width: 80px;
overflow: hidden
}
.quantity input {
margin: 0;
text-align: center;
width: 15px;
height: 15px;
padding: 0;
float: right;
color: #000;
font-size: 20px;
border: 0;
outline: 0;
background-color: #F6F6F6
}
.quantity input.qty {
position: relative;
border: 0;
width: 100%;
height: 40px;
padding: 10px 25px 10px 10px;
text-align: center;
font-weight: 400;
font-size: 15px;
border-radius: 0;
background-clip: padding-box
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: