-
Notifications
You must be signed in to change notification settings - Fork 1
/
css display.html
53 lines (42 loc) · 920 Bytes
/
css display.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
52
53
### CSS DISPLAY ###
### ADVANCE CSS ###
<!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: block;
width: 200px;
height: 200px;
background-color: red;
}
.green {
display: block;
width: 200px;
height: 200px;
background-color: green;
}
.blue {
display: block;
width: 200px;
height: 200px;
background-color: blue;
}
</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>