-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
163 lines (156 loc) · 6.06 KB
/
index.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
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0 shrink-to-fit=no" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<meta name="description" content="Bootstrap demo site">
<meta name="author" content="Anna Greaves">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.2.1/css/bootstrap.min.css" />
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.1/css/all.css">
<link rel="stylesheet" href="assets/css/prism.css">
<link rel="stylesheet" href="assets/css/main.css" type="text/css" />
<title>Bootstrap 4 grid demo | Essentials</title>
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-light fixed-top bg-white">
<a class="navbar-brand mr-1" href="index.html">
<img src="assets/images/logo.gif" height="40" alt="AG logo" title="AG logo">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-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 ml-auto text-uppercase">
<li class="nav-item active">
<a class="nav-link" href="index.html">Essentials</a>
</li>
<li class="nav-item">
<a class="nav-link" href="containers-rows.html">Containers & Rows</a>
</li>
<li class="nav-item">
<a class="nav-link" href="columns.html">Columns</a>
</li>
<li class="nav-item">
<a class="nav-link" href="responsive.html">Responsive</a>
</li>
<li class="nav-item">
<a class="nav-link" href="spacing.html">Spacing</a>
</li>
</ul>
</div>
</nav>
<!-- Bootstrap essentials -->
<main>
<section class="wrapper">
<div class="container-fluid p-0">
<div class="row justify-content-center">
<div class="col-12 col-lg-10 p-0 text-left">
<header>
<h1 class="text-center mt-4">Bootstrap Essentials</h1>
</header>
<ul>
<li>The Bootstrap grid is what we use to structure the layout of our website. It tells the browser where to put different elements on the page.</li>
<li>And crucially it can tell the browser to arrange elements in different ways depending on the screen size it is rendering on.</li>
<li>Bootstrap styling is implemented using the bootstrap library of pre-written css, which is accessed by linking to their library and then using the right bootstrap class names in your html.</li>
<li>To use the bootstrap grid, you always need 3 types of bootstrap grid classes:</li>
<ol>
<li>Container</li>
<li>Row</li>
<li>Column</li>
</ol>
<li>Each of these elements rely on the others to work correctly.</li>
<li>Your content goes in the columns.
<li>You shouldn't have a column without a row,</li>
<li>And you shouldn't have a row without a container</li>
<li class="bold">Getting them in the wrong order, or missing out, will mess with your layout!</li>
</ul>
</div>
</div>
</div>
<div class="container mt-3 basics-container bgcolor9 text-white">
<p>container</p>
<div class="row basics-row bgcolor11">
<div class="col-12">
<p>row</p>
</div>
<div class="col-4 basics-column">
<p>column</p>
</div>
<div class="col-8 basics-column">
<p>column</p>
</div>
</div>
<div class="row basics-row bgcolor11 mt-1">
<div class="col-12">
<p>row</p>
</div>
<div class="col-6 basics-column">
<p>column</p>
</div>
<div class="col-6 basics-column">
<p>column</p>
</div>
</div>
</div>
</section>
<section class="structure-section">
<div class="container-fluid my-3">
<div class="row no-gutters">
<div class="col mb-4">
<h2>Structuring your grid code</h2>
<p class="structure-p">Nesting your containers, rows and columns correctly.</p>
<div class="row no-gutters justify-content-center">
<div class="col-sm-12 col-md-8 col-lg-6">
<!-- Example code block to show The basic structure of the bootstrap grid -->
<pre>
<code class="language-markup">
<script type="prism-html-markup">
<!-- The basic structure of the bootstrap grid -->
<div class="container">
<div class="row">
<div class="col">
Your content goes here
</div>
</div>
</div>
</script>
</code>
</pre>
</div>
</div>
</div>
</div>
</div>
</section>
</main>
<footer class="bg-secondary mt-5 p-3">
<div class="container-fluid">
<div class="row">
<div class="col-12 text-white">
<h3>Developed by Anna Greaves 2019</h3>
<a href="https://github.com/AJGreaves" target="_blank" aria-label="Find me on GitHub" rel="noopener">
<i class="fab fa-github-alt"></i>
</a>
<a href="https://www.facebook.com/a.gilhespy" target="_blank" aria-label="Find me on Facebook" rel="noopener">
<i class="fab fa-facebook"></i>
</a>
<a href="https://www.linkedin.com/in/anna-greaves-923474186/" target="_blank" aria-label="Find me on LinkedIn" rel="noopener">
<i class="fab fa-linkedin"></i>
</a>
<a href="https://code-institute-room.slack.com/messages/DF89S323B/" target="_blank" aria-label="Find me on Slack" rel="noopener">
<i class="fab fa-slack"></i>
</a>
</div>
</div>
</div>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.2.1/js/bootstrap.min.js"></script>
<script src="assets/js/prism.js"></script>
</body>
</html>