forked from newmanix/positioning
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
83 lines (67 loc) · 2.59 KB
/
index.html
File metadata and controls
83 lines (67 loc) · 2.59 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Positioning</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" />
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/nav.css">
<link rel="stylesheet" href="css/forms.css">
</head>
<body>
<header>
<h1 class="page-header">Positioning</h1>
<nav class="topnav" id="myTopnav">
<a href="index.html" class="active">Home</a>
<a href="#">Link</a>
<a href="#">Link</a>
<a href="javascript:void(0);" class="icon" onclick="myFunction()">☰</a>
</nav>
</header>
<main class="wrapper">
<h2 class="subheader">Positioning</h2>
<div class="text-align-center">
This text is positioned using text-align center.
</div>
<div class="margin-auto">
<div>This text is in a div positioned by margin:auto</div>
</div>
<div class="my-column" style="background-color:#aaa;">
<h2>Column 1</h2>
<p>Left column desktop, stacks in mobile</p>
<p>From <a href="https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_two_columns_responsive" target="_blank">W3Schools</a></p>
<div class="flexible">
<div style="max-width:400px">
<img src="https://picsum.photos/id/237/536/354" />
</div>
</div>
</div>
<div class="my-column" style="background-color:#aaa;">
<h2>Column 2</h2>
<p>Right column desktop, stacks in mobile</p>
<p>From <a href="https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_two_columns_responsive" target="_blank">W3Schools</a></p>
<div class="flexible">
<div style="max-width:400px">
<img src="https://picsum.photos/id/1074/536/354" />
</div>
</div>
</div>
<div class="social-container">
<div><a href="#" class="fa fa-facebook"></a></div>
<div><a href="#" class="fa fa-twitter"></a></div>
<div><a href="#" class="fa fa-youtube"></a></div>
<div><a href="#" class="fa fa-instagram"></a></div>
<div><a href="#" class="fa fa-snapchat-ghost"></a></div>
</div>
<footer>
<p><small>© 2021-<span id="this-year"></span> by
Abbas Alme, All Rights Reserved ~
<a id="html-checker" href="#" target="_blank">Check HTML</a> ~
<a id="css-checker" href="#" target="_blank">Check CSS</a></small>
</p>
</footer>
</main>
<script src="js/main.js"></script>
</body>
</html>