-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (42 loc) · 915 Bytes
/
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
51
<!DOCTYPE html>
<html>
<!--
TODO
1. By changing only the display property of the CSS make all 3 squares line up horizontally like in goal1 image.
2. Change only the display property to make all 3 squares line up vertically like in goal2 image.
-->
<head>
<title>CSS Display Property Example</title>
<style>
p {
color: white;
}
.red {
display: inline-block;
width: 200px;
height: 200px;
background-color: red;
}
.green {
display: inline-block;
width: 200px;
height: 200px;
background-color: green;
}
.blue {
display: inline-block;
width: 200px;
height: 200px;
background-color: blue;
}
body{
}
</style>
</head>
<body>
<h1>CSS Display Property</h1>
<p class="red">Red Paragraph </p>
<p class="green">Green Paragraph</p>
<p class="blue">Blue Paragraph</p>
</body>
</html>