-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcards.html
825 lines (794 loc) · 35.1 KB
/
cards.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cards</title>
<link rel="stylesheet" href="css/bootstrap.css">
</head>
<body>
<div class="container">
<hr>
<h3 class="text-center my-5 ">Basic card --example--</h3>
<hr>
<div class="row mb-2 justify-content-center">
<div class="card" style="width: 18rem;">
<img src="https://picsum.photos/200/300" class="card-img-top" alt="...">
<div class="card-body">
<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>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
<hr>
<h3 class="text-center my-5 ">content types</h3>
<hr>
<h5 class="text-center my-5 ">body .cardbody </h5>
<hr>
<div class="row mb-2">
<div class="card">
<div class="card-body">
This is some text within a card body.
</div>
</div>
</div>
<h5 class="text-center my-5 ">Titles, text, and links --.card-title , .card-link, .card-subtitle, h* ->placed in a
.card-body item -- </h5>
<hr>
<div class="row mb-2">
<div class="card" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<h6 class="card-subtitle mb-2 text-body-secondary">Card subtitle</h6>
<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>
<a href="#" class="card-link">Card link</a>
<a href="#" class="card-link">Another link</a>
</div>
</div>
</div>
<h5 class="text-center my-5 ">card images --.card-img-top and .card-img-bottom , .card-text,-</h5>
<hr>
<div class="row mb-2">
<div class="card" style="width: 18rem;">
<img src="https://picsum.photos/200/300" class="card-img-top" alt="...">
<div class="card-body">
<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>
</div>
</div>
<div class="card" style="width: 18rem;">
<img src="https://picsum.photos/200/300" class="card-img-bottom" alt="...">
<div class="card-body">
<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>
</div>
</div>
</div>
<hr>
<h3 class="text-center my-5 ">Kitchen sink </h3>
<hr>
<div class="row mb-2">
<div class="card" style="width: 18rem;">
<img src="https://picsum.photos/400/400" class="card-img-top" alt="...">
<div class="card-body">
<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>
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item">An item</li>
<li class="list-group-item">A second item</li>
<li class="list-group-item">A third item</li>
</ul>
<div class="card-body">
<a href="#" class="card-link">Card link</a>
<a href="#" class="card-link">Another link</a>
</div>
</div>
</div>
<hr>
<h3 class="text-center my-5 ">Header and Footer</h3>
<hr>
<div class="row mb-2">
<div class="card my-4">
<div class="card-header">
Featured
</div>
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
<div class="card my-4">
<h5 class="card-header">Card headers can be styled by adding .card-header to <h*> elements.</h5>
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
<div class="card my-4">
<div class="card-header">
Quote
</div>
<div class="card-body">
<blockquote class="blockquote mb-0">
<p>A well-known quote, contained in a blockquote element.</p>
<footer class="blockquote-footer">Someone famous in <cite title="Source Title">Source Title</cite></footer>
</blockquote>
</div>
</div>
<div class="card text-center">
<div class="card-header">
Featured
</div>
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
<div class="card-footer text-body-secondary">
2 days ago
</div>
</div>
</div>
<hr>
<h3 class="text-center my-5 "> List groups </h3>
<hr>
<div class="row mb-2 justify-content-center">
<div class="col-12 col-md-6 col-lg-4">
<div class="card">
<ul class="list-group list-group-flush">
<li class="list-group-item">An item</li>
<li class="list-group-item">A second item</li>
<li class="list-group-item">A third item</li>
</ul>
</div>
</div>
<div class="col-12 col-md-6 col-lg-4">
<div class="card">
<div class="card-header">
Featured
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item">An item</li>
<li class="list-group-item">A second item</li>
<li class="list-group-item">A third item</li>
</ul>
</div>
</div>
<div class="col-12 col-md-6 col-lg-4">
<div class="card">
<ul class="list-group list-group-flush">
<li class="list-group-item">An item</li>
<li class="list-group-item">A second item</li>
<li class="list-group-item">A third item</li>
</ul>
<div class="card-footer">
Card footer
</div>
</div>
</div>
</div>
<hr>
<h3 class="text-center my-5 ">Text alignment </h3>
<hr>
<div class="row justify-content-around">
<div class="card mb-3" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">You can quickly change the text alignment of any card—in its entirety or specific
parts—with our text align classes..</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
<div class="card text-center mb-3" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">You can quickly change the text alignment of any card—in its entirety or specific
parts—with our text align classes..</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
<div class="card text-end" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">You can quickly change the text alignment of any card—in its entirety or specific
parts—with our text align classes..</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
<hr>
<h3 class="text-center my-5 ">Text alignment </h3>
<h5 class="text-center">Add some navigation to a card’s header (or block) with Bootstrap’s nav components.</h5>
<hr>
<div class="col-12">
<div class="row">
<div class="card text-center">
<div class="card-header">
<ul class="nav nav-tabs card-header-tabs">
<li class="nav-item">
<a class="nav-link active" aria-current="true" href="#">Active</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" aria-disabled="true">Disabled</a>
</li>
</ul>
</div>
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
<div class="row">
<div class="card text-center">
<div class="card-header">
<ul class="nav nav-pills card-header-pills">
<li class="nav-item">
<a class="nav-link active" href="#">Active</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" aria-disabled="true">Disabled</a>
</li>
</ul>
</div>
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
</div>
<hr>
<h1 class="text-center my-5 ">Images</h1>
<hr>
<h3 class="text-start my-4">Image caps</h3>
<hr>
<div class="row mb-4">
<div class="card mb-3">
<img src="https://picsum.photos/600/200" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional
content. This content is a little bit longer.</p>
<p>Similar to headers and footers, cards can include top and bottom “image caps”—images at the top or bottom
of a card.</p>
<p class="card-text"><small class="text-body-secondary">Last updated 3 mins ago</small></p>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional
content. This content is a little bit longer.</p>
<p>Similar to headers and footers, cards can include top and bottom “image caps”—images at the top or bottom
of a card.</p>
<p class="card-text"><small class="text-body-secondary">Last updated 3 mins ago</small></p>
</div>
<img src="https://picsum.photos/600/200" class="card-img-bottom" alt="...">
</div>
</div>
<hr>
<h3 class="text-start my-4">Image overlays </h3>
<hr>
<div class="row mb-3">
<div class="card text-bg-dark">
<img src="https://picsum.photos/id/120/600/201" class="card-img" alt="...">
<div class="card-img-overlay m-5">
<h5 class="card-title">Card title</h5>
<p>Turn an image into a card background and overlay your card’s text. Depending on the image, you may or may
not need additional styles or utilities.</p>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional
content. This content is a little bit longer.</p>
<p class="card-text"><small>Last updated 3 mins ago</small></p>
</div>
</div>
</div>
<hr>
<h1 class="text-start my-4">Horizontal</h1>
<hr>
<div class="row mb-3">
<div class="card mb-3" style="max-width: 540px;">
<div class="row g-0">
<div class="col-md-4">
<img src="https://picsum.photos/200/300?dark" class="img-fluid rounded-start" alt="...">
</div>
<div class="col-md-8">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional
content. This content is a little bit longer.</p>
<p class="card-text"><small class="text-body-secondary">Last updated 3 mins ago</small></p>
</div>
</div>
</div>
</div>
</div>
<div class="row my-5">
<h3 class="text-center">basic card will take space it can get -- so use sizing options</h3>
<div class="card">
<img src="https://picsum.photos/2000/1000
" class="card-img-top" alt="...">
<div class="card-body">
<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>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
<hr>
<h2 class="text-center my-5"> Sizing options</h2>
<hr>
<h3 class="text-start my-5">Using grid system</h3>
<div class="row">
<div class="col-sm-6 mb-3 mb-sm-0">
<div class="card">
<img src="https://picsum.photos/800/800" class="card-img-top" alt="...">
<div class="card-body">
<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>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="card">
<img src="https://picsum.photos/800/800" class="card-img-top" alt="...">
<div class="card-body">
<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>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
</div>
<hr>
<h3 class="text-center my-5 ">Using using utilities like <br> w-75,h-25 d-inline-block,h-auto d-inline-block, width:
50%; height: 100px; min-vh-100, vw-100</h3>
<hr>
<div class="row">
<div class="card w-75 mb-3">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Button</a>
</div>
</div>
<div class="card w-50">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Button</a>
</div>
</div>
</div>
<hr>
<h3 class="text-center my-5 ">Using custom css</h3>
<hr>
<div class="card mb-4" style="width: 18rem;">
<div class="card-body">
<h5 class="card-title">Special title treatment</h5>
<p class="card-text">With supporting text below as a natural lead-in to additional content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
<hr>
<h1 class="text-center my-5 ">Card Styles</h1>
<hr>
<h3 class="text-start my-4">Background and color</h3>
<hr>
<div class="row">
<div class="card text-bg-primary m-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Primary card title</h5>
<p class="card-text">Set a background-color with contrasting foreground color with our .text-bg-{color}
helpers. Previously it was required to manually pair your choice of .text-{color} and .bg-{color} utilities
for styling, which you still may use if you prefer.</p>
</div>
</div>
<div class="card text-bg-secondary m-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Secondary card title</h5>
<p class="card-text">Set a background-color with contrasting foreground color with our .text-bg-{color}
helpers. Previously it was required to manually pair your choice of .text-{color} and .bg-{color} utilities
for styling, which you still may use if you prefer.</p>
</div>
</div>
<div class="card text-bg-success m-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Success card title</h5>
<p class="card-text">Set a background-color with contrasting foreground color with our .text-bg-{color}
helpers. Previously it was required to manually pair your choice of .text-{color} and .bg-{color} utilities
for styling, which you still may use if you prefer.</p>
</div>
</div>
<div class="card text-bg-danger m-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Danger 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>
</div>
</div>
<div class="card text-bg-warning m-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Warning 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>
</div>
</div>
<div class="card text-bg-info m-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Info 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>
</div>
</div>
<div class="card text-bg-light m-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Light 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>
</div>
</div>
<div class="card text-bg-dark m-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Dark 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>
</div>
</div>
</div>
<hr>
<h3 class="text-start my-4">Border </h3>
<hr>
<div class="row">
<div class="card border-primary m-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body text-primary">
<h5 class="card-title">Primary card title</h5>
<p class="card-text">Use border utilities to change just the border-color of a card. Note that you can put
.text-{color} classes on the parent .card or a subset of the card’s contents as shown below.</p>
</div>
</div>
<div class="card border-secondary m-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body text-secondary">
<h5 class="card-title">Secondary card title</h5>
<p class="card-text">Use border utilities to change just the border-color of a card. Note that you can put
.text-{color} classes on the parent .card or a subset of the card’s contents as shown below.</p>
</div>
</div>
<div class="card border-success m-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body text-success">
<h5 class="card-title">Success card title</h5>
<p class="card-text">Use border utilities to change just the border-color of a card. Note that you can put
.text-{color} classes on the parent .card or a subset of the card’s contents as shown below.</p>
</div>
</div>
<div class="card border-danger m-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body text-danger">
<h5 class="card-title">Danger card title</h5>
<p class="card-text">Use border utilities to change just the border-color of a card. Note that you can put
.text-{color} classes on the parent .card or a subset of the card’s contents as shown below.</p>
</div>
</div>
<div class="card border-warning m-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Warning 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>
</div>
</div>
<div class="card border-info m-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Info 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>
</div>
</div>
<div class="card border-light m-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Light 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>
</div>
</div>
<div class="card border-dark m-3" style="max-width: 18rem;">
<div class="card-header">Header</div>
<div class="card-body">
<h5 class="card-title">Dark 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>
</div>
</div>
</div>
<hr>
<h3 class="text-start my-4">Mixins utilities </h3>
<hr>
<div class="row">
<div class="card border-success m-3" style="max-width: 18rem;">
<div class="card-header bg-transparent border-success">Header</div>
<div class="card-body text-success">
<h5 class="card-title">Success card title</h5>
<p class="card-text">You can also change the borders on the card header and footer as needed, and even remove
their background-color with .bg-transparent.</p>
</div>
<div class="card-footer bg-transparent border-success">Footer</div>
</div>
</div>
<hr>
<h1 class="text-center my-5 ">Card layout</h1>
<hr>
<h3 class="text-start my-4">Card groups <span class="h5">( these layout options are not yet responsive.)</span>
</h3>
<hr>
<div class="row my-5">
<div class="card-group">
<div class="card">
<img src="https://picsum.photos/200/200" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Use card groups to render cards as a single, attached element with equal width and
height columns. Card groups start off stacked and use display: flex; to become attached with uniform
dimensions starting at the sm breakpoint. </p>
<p class="card-text"><small class="text-body-secondary">Last updated 3 mins ago</small></p>
</div>
</div>
<div class="card">
<img src="https://picsum.photos/200/200" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
<p class="card-text"><small class="text-body-secondary">Last updated 3 mins ago</small></p>
</div>
</div>
<div class="card">
<img src="https://picsum.photos/200/200" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional
content. This card has even longer content than the first to show that equal height action.</p>
<p class="card-text"><small class="text-body-secondary">Last updated 3 mins ago</small></p>
</div>
</div>
</div>
</div>
<h5 class="my-3 text-center">When using card groups with footers, their content will automatically line up.</h5>
<div class="row my-5">
<div class="card-group">
<div class="card">
<img src="https://picsum.photos/200/200" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional
content. This content is a little bit longer.</p>
</div>
<div class="card-footer">
<small class="text-body-secondary">Last updated 3 mins ago</small>
</div>
</div>
<div class="card">
<img src="https://picsum.photos/200/200" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
</div>
<div class="card-footer">
<small class="text-body-secondary">Last updated 3 mins ago</small>
</div>
</div>
<div class="card">
<img src="https://picsum.photos/200/200" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional
content. This card has even longer content than the first to show that equal height action.</p>
</div>
<div class="card-footer">
<small class="text-body-secondary">Last updated 3 mins ago</small>
</div>
</div>
</div>
</div>
<hr>
<h3 class="text-center my-5 ">Grid Cards (Responsive)</h3>
<hr>
<hr>
<p class="text-start my-5" style="font-size: 20px; font-weight:600;">The Bootstrap grid system and `.row-cols` classes let you control the number of columns per row. For example, `.row-cols-1` shows one column, while `.row-cols-md-2` displays two columns starting from the medium screen size.</p>
<hr>
<div class="row row-cols-1 row-cols-md-2 g-4 row-cols-lg-4">
<div class="col">
<div class="card">
<img src="https://picsum.photos/300/200" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Use the Bootstrap grid system and its .row-cols classes to control how many grid columns (wrapped around your cards) you show per row. For example, here’s .row-cols-1 laying out the cards on one column, and .row-cols-md-2 splitting four cards to equal width across multiple rows, from the medium breakpoint up.</p>
</div>
</div>
</div>
<div class="col">
<div class="card">
<img src="https://picsum.photos/300/200" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Use the Bootstrap grid system and its .row-cols classes to control how many grid columns (wrapped around your cards) you show per row. For example, here’s .row-cols-1 laying out the cards on one column, and .row-cols-md-2 splitting four cards to equal width across multiple rows, from the medium breakpoint up.</p>
</div>
</div>
</div>
<div class="col">
<div class="card">
<img src="https://picsum.photos/300/200" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Use the Bootstrap grid system and its .row-cols classes to control how many grid columns (wrapped around your cards) you show per row. For example, here’s .row-cols-1 laying out the cards on one column, and .row-cols-md-2 splitting four cards to equal width across multiple rows, from the medium breakpoint up. </p>
</div>
</div>
</div>
<div class="col">
<div class="card">
<img src="https://picsum.photos/300/200" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Use the Bootstrap grid system and its .row-cols classes to control how many grid columns (wrapped around your cards) you show per row. For example, here’s .row-cols-1 laying out the cards on one column, and .row-cols-md-2 splitting four cards to equal width across multiple rows, from the medium breakpoint up.</p>
</div>
</div>
</div>
</div>
<hr>
<h5 class="text-start my-5">Change it to .row-cols-3 and you’ll see the fourth card wrap.</h5>
<hr>
<div class="row row-cols-1 row-cols-md-3 g-4 mb-5">
<div class="col">
<div class="card">
<img src="https://picsum.photos/300/200" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Change it to .row-cols-3 and you’ll see the fourth card wrap.</p>
</div>
</div>
</div>
<div class="col">
<div class="card">
<img src="https://picsum.photos/300/200" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Change it to .row-cols-3 and you’ll see the fourth card wrap.</p>
</div>
</div>
</div>
<div class="col">
<div class="card">
<img src="https://picsum.photos/300/200" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Change it to .row-cols-3 and you’ll see the fourth card wrap.</p>
</div>
</div>
</div>
<div class="col">
<div class="card">
<img src="https://picsum.photos/300/200" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Change it to .row-cols-3 and you’ll see the fourth card wrap.</p>
</div>
</div>
</div>
</div>
<hr>
<h5 class="text-start my-5">When you need equal height, add .h-100 to the cards. If you want equal heights by default, you can set $card-height: 100% in Sass. </h5>
<hr>
<div class="row row-cols-1 row-cols-md-3 g-4 ">
<div class="col">
<div class="card h-100">
<img src="https://picsum.photos/300/200" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">When you need equal height, add .h-100 to the cards. If you want equal heights by default, you can set $card-height: 100% in Sass. </p>
</div>
</div>
</div>
<div class="col">
<div class="card h-100">
<img src="https://picsum.photos/300/200" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a short card.</p>
</div>
</div>
</div>
<div class="col">
<div class="card h-100">
<img src="https://picsum.photos/300/200" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content.</p>
</div>
</div>
</div>
<div class="col">
<div class="card h-100">
<img src="https://picsum.photos/300/200" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">When you need equal height, add .h-100 to the cards. If you want equal heights by default, you can set $card-height: 100% in Sass.
</p>
</div>
</div>
</div>
</div>
<hr>
<h5 class="text-start my-5" style="font-style:normal;">Just like with card groups, card footers will automatically line up.</h5>
<hr>
<div class="row row-cols-1 row-cols-md-3 g-4">
<div class="col">
<div class="card h-100">
<img src="https://picsum.photos/300/200" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
</div>
<div class="card-footer">
<small class="text-body-secondary">Last updated 3 mins ago</small>
</div>
</div>
</div>
<div class="col">
<div class="card h-100">
<img src="https://picsum.photos/300/200" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This card has supporting text below as a natural lead-in to additional content.</p>
</div>
<div class="card-footer">
<small class="text-body-secondary">Last updated 3 mins ago</small>
</div>
</div>
</div>
<div class="col">
<div class="card h-100">
<img src="https://picsum.photos/300/200" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.</p>
</div>
<div class="card-footer">
<small class="text-body-secondary">Last updated 3 mins ago</small>
</div>
</div>
</div>
</div>
</div>
<script src="js/bootstrap.bundle.js"></script>
</body>
</html>