-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode.html
More file actions
84 lines (75 loc) · 3.54 KB
/
code.html
File metadata and controls
84 lines (75 loc) · 3.54 KB
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
<!doctype html>
<html lang="en">
<head>
<title>Div Center: A World Changing Project</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/bootstrap@5.0.0/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-wEmeIV1mKuiNpC+IOBjI7aAzPcEZeedi5yW5f2yOq55WWLwNGmvvx4Um1vskeMj0" crossorigin="anonymous">
<link href="css/site.css" rel="stylesheet">
<link href="css/prism.css" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="#">CenterDiv</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 active" aria-current="page" href="code.html">The Code</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- ======= Main Section ======= -->
<main id="content" class="flex-shrink-0">
<div class="container col-xxl-8 px-4 py-5 mt-5">
<h2 class="border-1 border-bottom border-dark">The Code</h2>
<div class="row row-cols-1 row-cols-md-2">
<div class="col-lg-8">
<script type="text/plain" class="language-markup">
<main class="flex-shrink-0">
<div class="container">
<div class="row">
<div class="col border border-2 border-dark content d-flex justify-content-center align-items-center">
<img src="img/buggy_logos-01.png" class="img-fluid" height="150">
</div>
</div>
</div>
</main>
</script>
</div>
<div class="col-lg-4">
<h4>This code centers an image in a div horizontally and vertically! What's next world peace!</h4>
<p>This world changing MAGIC is achieved by adding three classes from bootstrap to a parent div d-flex
justify-content-center align-items-center </p>
<p>This will center the cotents of the div vertically and horizontally.</p>
</div>
</div>
</div>
</main>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js"
integrity="sha384-p34f1UUtsS3wqzfto5wAAmdvj+osOnFyQFpp4Ua3gs/ZVWx6oOypYoCJhGGScy+8" crossorigin="anonymous">
</script>
<script src="js/prism.js"></script>
<script>
Prism.plugins.NormalizeWhitespace.setDefaults({
'remove-trailing': true,
'remove-indent': true,
'left-trim': true,
'right-trim': true
})
</script>
</body>
</html>