-
Notifications
You must be signed in to change notification settings - Fork 0
/
grid9.html
108 lines (102 loc) · 4.73 KB
/
grid9.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
<!doctype html>
<html lang="en" class="h-100">
<head>
<title>Bootstrap and grids</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="css/bgColor.css">
<link rel="stylesheet" href="css/site.css">
</head>
<body class="d-flex flex-column h-100">
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="#">Bootstrap Grids</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse"
aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav me-auto mb-2 mb-md-0">
<li class="nav-item">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="grid1.html">Grid 1</a>
</li>
<li class="nav-item">
<a class="nav-link" href="grid2.html">Grid 2</a>
</li>
<li class="nav-item">
<a class="nav-link" href="grid3.html">Grid 3</a>
</li>
<li class="nav-item">
<a class="nav-link" href="grid4.html">Grid 4</a>
</li>
<li class="nav-item">
<a class="nav-link" href="grid5.html">Grid 5</a>
</li>
<li class="nav-item">
<a class="nav-link" href="grid6.html">Grid 6</a>
</li>
<li class="nav-item">
<a class="nav-link" href="grid7.html">Grid 7</a>
</li>
<li class="nav-item">
<a class="nav-link" href="grid8.html">Grid 8</a>
</li>
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="grid9.html">Grid 9</a>
</li>
</ul>
</div>
</div>
</nav>
<main class="flex-shrink-0">
<div class="container minHeight h-100">
<div class="row row-cols-md-2 row-cols-1 h-100 gy-2">
<div class="col col-md-12 ">
<div class="bg-secondary text-dark h-100">
<h5>Main</h5>
</div>
</div>
<div class="col-6 col-md-3 order-last"> <!--By using col-6 for the smallest possible screens we are making it so that there appears to be 3 rows, the first row has 1 column that takes up all 12 units, the two remaining rows have 2 columns each and each column takes up 6 unites worth of space.-->
<div class="bg-dark text-light h-100">
<h5>Col one-but last</h5>
</div>
</div>
<div class="col-6 col-md-3 ">
<div class="bg-secondary text-dark h-100">
<h5>Col Two</h5>
</div>
</div>
<div class="col-6 col-md-3 ">
<div class="bg-secondary text-light h-100">
<h5>Col Three</h5>
</div>
</div>
<div class="col-6 col-md-3 ">
<div class="bg-secondary text-light h-100">
<h5>Col Four</h5>
</div>
</div>
</div>
</div>
</main>
<footer class="footer mt-auto py-3 bg-dark">
<div class="container-fluid text-center">
<span class="text-white">Bootstrap And The Grids By Matthew Snyder</span>
</div>
</footer>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"
integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous">
</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous">
</script>
</body>
</html>