forked from PomoRev/CST8285_S22
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflexiblelayout.html
More file actions
108 lines (75 loc) · 1.98 KB
/
flexiblelayout.html
File metadata and controls
108 lines (75 loc) · 1.98 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
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">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Prof. Frank Emanuel">
<meta name="email" content="emanuef@algonquincollege.com">
<meta name="date" content="2022-06-07">
<style>
/* embedded CSS */
#peter {
border: solid green 3pt;
background-color: aquamarine;
color: red;
padding: 3pt;
font-size: 14pt;
margin: 3pt;
width: 300px;
position: relative;
left: 20px;
}
#frankpic {
width: 200px;
float: right;
}
.funbox {
border: 2pt green solid;
}
.clearfix::after {
content: "";
clear: both;
display: table;
}
nav {
display: flex;
justify-content: space-around;
flex-direction: row-reverse;
}
header {
font-size: 28vw;
}
</style>
<title>Flexbox</title>
</head>
<body>
<header>Flexbox</header>
<a href="#floatingbox"><button>floatbox</button></a>
<p>
Flexbox was used extensively by Bootstrap before grid.
</p>
<div id="peter">I am an element!</div>
<p>
Position was cool, but it had its limitations.
</p>
<div class="funbox clearfix" id="floatingbox">
<img id="frankpic"
src="images/Frank2020scaled.jpg"
alt="Picture of Frank">
<p>
Hey there people. I am trying to tell a story that might
not make any sense. But hey I'm trying.
</p>
</div>
<nav>
<button>One</button>
<button>Two</button>
<button>Three</button>
</nav>
<ul>
<li>First<p>some text.</p></li>
<li>Second</li>
<li>Third</li>
</ul>
</body>
</html>