"Responsive Cards "
Bootstrap 4.1.1 Snippet by BrettMchatton

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 ---------->
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous"/>
<title>Responsive Bootstrap Cards</title>
<link href="http://www.w3.org/html/logo/downloads/HTML5_Badge_512.png" rel="icon"/>
</head>
<body class="bg-light">
<!-- main container -->
<div class="container bg-light">
<!-- cards -->
<div id="cards" class="bg-light">
<h3 class="font-weight-light text-center my-3">Cards</h3>
<!-- mobile Card container -->
<div class="row d-md-none my-3">
<!-- Card # -->
<div class="col-10 container mt-3 mx-auto p-0 bg-white border rounded">
<div class="bg-primary text-light py-1 m-0">
<h5 class="px-2 my-auto">Card Title</h5>
</div>
<div class="row">
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: