forked from mvanzo/124-css-positioning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (39 loc) · 1.31 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./styles/style.css" />
<title>Document</title>
</head>
<body>
<h1>CSS is Fun!</h1>
<div>
<h3>CSS Box Model</h3>
<!-- element with more than one class -->
<div class="margin border padding content">
Box Model Examp Div
</div>
</div>
<div>
<h3 class="center">CSS positioning Examples</h3>
<p>i am block so is the h3 above me</p>
<p class="inline">I am inline </p>
<p class="inline">I am inline </p>
<p class="hidden">The Secret Message is: Hi! 👋</p>
<p id="example-id">example</p>
<!-- <div class="position-example">position: static(default)</div>
<div class="position-example relative">position: relative</div>
<div class="position-example fixed">position: fixed</div>
<div class="position-example absolute">position: absolute</div> -->
</div>
<div>
<h3>Floats and Clears (aka new print layouts)</h3>
<div class="float-left">float left</div>
<div class="float-right">float right</div>
<div class="float-clear">hello i am some text the float is cleared</div>
</div>
<button>Click me!</button>
</body>
</html>