-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrid.html
31 lines (30 loc) · 1.39 KB
/
grid.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>bs2</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<div class="row text-center text-white my-5">
<div class="col-sm-2 bg-primary">1</div>
<div class="col bg-dark">2</div>
<div class="col-sm-2 bg-secondary">3</div>
</div>
<h1>col</h1>
<h5>col-*-*</h5>
<p>The first star (*) represents the responsiveness: sm, md, lg, xl or xxl,
while the second star represents a number, which should add up to 12 for each row.</p>
<p><h2>The Bootstrap 5 grid system has six classes:</h2>
.col- (extra small devices - screen width less than 576px)
.col-sm- (small devices - screen width equal to or greater than 576px)
.col-md- (medium devices - screen width equal to or greater than 768px)
.col-lg- (large devices - screen width equal to or greater than 992px)
.col-xl- (xlarge devices - screen width equal to or greater than 1200px)
.col-xxl- (xxlarge devices - screen width equal to or greater than 1400px)
</p>
</body>
</html>