forked from newmanix/css-positioning
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
77 lines (68 loc) · 2.86 KB
/
index.html
File metadata and controls
77 lines (68 loc) · 2.86 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
<!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">
We learned to align text to the center by using CSS
</div>
<div class="margin-auto">
<div> We also learned how to center a text by using margin-auto in CSS</div>
</div>
<div class="my-row">
<div class="my-column" style="background-color:#aaa;">
<h2>Column 1</h2>
<p>This coulumn is going to appear at the top when its viewed in mobile but for desktop will appear in the left side because its floated to the left</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:300px">
<img src="https://picsum.photos/id/237/536/354" alt="Image">
</div>
</div>
</div>
<div class="my-column" style="background-color:#bbb;">
<h2>Column 2</h2>
<p>This coulumn is going to appear at the bottom when its viewed in mobile but for desktop will appear in the right side</p>
<div class="flexible">
<div style="max-width:400px">
<img src="https://picsum.photos/id/1074/536/354" alt="Image">
</div>
</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>© 2022-<span id="this-year"></span> by
Danait Gebremedhin, 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>