"Shopping Cart BS 3"
Bootstrap 3.0.0 Snippet by amatellanes

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="//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-sm-12 col-md-10 col-md-offset-1">
<table class="table table-hover">
<thead>
<tr>
<th>Product</th>
<th>Quantity</th>
<th class="text-center">Price</th>
<th class="text-center">Total</th>
<th>·</th>
</tr>
</thead>
<tbody>
<tr>
<td class="col-sm-8 col-md-6">
<div class="media">
<a class="thumbnail pull-left" href="#"> <img class="media-object" src="http://icons.iconarchive.com/icons/custom-icon-design/flatastic-2/72/product-icon.png" style="width: 72px; height: 72px;"> </a>
<div class="media-body">
<h4 class="media-heading"><a href="#">Product name</a></h4>
<h5 class="media-heading"> by <a href="#">Brand name</a></h5>
<span>Status: </span><span class="text-success"><strong>In Stock</strong></span>
</div>
</div></td>
<td class="col-sm-1 col-md-1" style="text-align: center">
<input type="email" class="form-control" id="exampleInputEmail1" value="3">
</td>
<td class="col-sm-1 col-md-1 text-center"><strong>$4.87</strong></td>
<td class="col-sm-1 col-md-1 text-center"><strong>$14.61</strong></td>
<td class="col-sm-1 col-md-1">
<button type="button" class="btn btn-danger">
<span class="glyphicon glyphicon-remove"></span> Remove
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

Awesome snippet!

Tberry Apapa () - 11 years ago - Reply 0


Maybe only show the remove button text if greater than mobile display and only show icon? (use hidden-xs class on the text)
Otherwise pretty sweet!

Jay El-Kaake () - 11 years ago - Reply 0


Hi, great idea but this snippet isn't responsive at all... I mean, I basically tried seeing what it looks like when used on devices with a max-width of 400px and it just breaks apart. I do think you should revise your code as there are better ways to make this work for all devices!

Adedoyin Kassem () - 11 years ago - Reply 0


I agree, beautiful snippet but can someone make it responsive :) I'll crack at it. What does one do if they improve an existing snippet? (noob question, sorry)

Ryan Harmon () - 11 years ago - Reply 0


Be sure to update the community if/when you get to make it responsive... Would love to see that happen! *wink*

Adedoyin Kassem () - 11 years ago - Reply 0


thats awesome.....thanks ametellanes n bootsnipp

uzzal () - 11 years ago - Reply 0