-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap5-responsive-card-grid-with-images.html
69 lines (57 loc) · 4.62 KB
/
bootstrap5-responsive-card-grid-with-images.html
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 5 Responsive Card Grid with Images</title>
<!-- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous"> -->
<!-- <link rel="stylesheet" id="picostrap-styles-css" href="https://cdn.livecanvas.com/media/css/library/bundle.css" media="all"> -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/livecanvas-team/ninjabootstrap/dist/css/bootstrap.min.css" media="all">
</head>
<body>
<div class="container">
<div class="row row-cols-1 row-cols-lg-3 align-items-stretch g-4 py-5">
<div class="col">
<div class="lc-block card card-cover h-100 overflow-hidden text-white bg-dark rounded-5 shadow-lg" lc-helper="background" style="background-image: url('https://images.unsplash.com/photo-1507499739999-097706ad8914?crop=entropy&cs=tinysrgb&fit=crop&fm=jpg&ixid=MnwzNzg0fDB8MXxzZWFyY2h8MTB8fHNwYWNlfGVufDB8MXx8fDE2MjE4NDQ2MTY&ixlib=rb-1.2.1&q=80&w=1080&h=768'); background-size:cover">
<div class="d-flex flex-column h-100 p-5 pb-3 text-white text-shadow-1">
<div class="lc-block pt-5 mt-5 mb-4">
<div editable="rich">
<h2 class="display-6 lh-1 fw-bold">Short title, long jacket</h2>
<p>Quickly design and customize responsive mobile-first sites with Bootstrap.</p>
</div>
</div>
<ul class="lc-block d-flex list-unstyled mt-auto ms-auto"><a class="btn btn-link btn-sm text-white " href="#" role="button">Read more</a></ul>
</div>
</div>
</div>
<div class="col">
<div class="lc-block card card-cover h-100 overflow-hidden text-white bg-dark rounded-5 shadow-lg" lc-helper="background" style="background:url(https://images.unsplash.com/photo-1444910958049-f45a1ac7ace5?crop=entropy&amp;cs=tinysrgb&amp;fit=crop&amp;fm=jpg&amp;ixid=MnwzNzg0fDB8MXxzZWFyY2h8MTA2fHxmbG93ZXJzfGVufDB8MHx8fDE2MjE1MDQwMjg&amp;ixlib=rb-1.2.1&amp;q=80&amp;w=1080&amp;h=76) center / cover no-repeat;">
<div class="d-flex flex-column h-100 p-5 pb-3 text-white text-shadow-1">
<div class="lc-block pt-5 mt-5 mb-4">
<div editable="rich">
<h2 class="display-6 lh-1 fw-bold">Much longer title that wraps to multiple lines</h2>
<p>Quickly design and customize responsive mobile-first sites with Bootstrap.</p>
</div>
</div>
<ul class="lc-block d-flex list-unstyled mt-auto ms-auto"><a class="btn btn-link btn-sm text-white " href="#" role="button">Read more</a></ul>
</div>
</div>
</div>
<div class="col">
<div class="lc-block card card-cover h-100 overflow-hidden text-white bg-dark rounded-5 shadow-lg" lc-helper="background" style="background:url(https://images.unsplash.com/photo-1580133748682-099a97d17e6c?crop=entropy&amp;cs=tinysrgb&amp;fit=crop&amp;fm=jpg&amp;ixid=MnwzNzg0fDB8MXxzZWFyY2h8MTV8fGplbGx5JTIwZmlzaHxlbnwwfDB8fHwxNjIxNTA0MDU1&amp;ixlib=rb-1.2.1&amp;q=80&amp;w=1080&amp;h=768) center / cover no-repeat;">
<div class="d-flex flex-column h-100 p-5 pb-3 text-white text-shadow-1">
<div class="lc-block pt-5 mt-5 mb-4">
<div editable="rich">
<h2 class="display-6 lh-1 fw-bold">Another longer title belongs here</h2>
<p>Quickly design and customize responsive mobile-first sites with Bootstrap.</p>
</div>
</div>
<ul class="lc-block d-flex list-unstyled mt-auto ms-auto"><a class="btn btn-link btn-sm text-white " href="#" role="button">Read more</a></ul>
</div>
</div>
</div>
</div>
</div>
<script defer src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
</body>
</html>