-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
105 lines (90 loc) · 2.37 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
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
<!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">
<title>Margin | Padding</title>
<style>
body {
background-color: #da7f0098;
}
h1 {
color: #000000;
text-transform: capitalize;
}
.margin-area {
width: 600px;
height: 300px;
border: 10px groove #ff0000;
background-color: #ffff;
}
.border-area {
width: 520px;
height: 220px;
border: 20px solid #0400fd;
margin: 20px;
}
.padding-area {
width: 460px;
height: 160px;
border: 30px solid #00ff22;
}
.content-area {
width: 460px;
height: 130px;
background-color: #ffc400;
}
p {
text-align: center;
font-size: 20px;
text-transform: capitalize;
}
li {
font-size: 30px;
text-transform: capitalize;
}
.white {
background-color: #ffff;
color: #000000;
width: 300px;
}
.blue {
background-color: #2f00ff;
color: #ffffff;
width: 300px;
}
.green {
background-color: #15ff00;
color: #000000;
width: 300px;
}
.yellow {
background-color: #fffb00;
color: #000000;
width: 300px;
}
</style>
</head>
<body>
<h1>css-margin & padding area!</h1>
<div class="margin-area">
<div class="border-area">
<div class="padding-area">
<div class="content-area">
<p>content area</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Perferendis repellendus qui officia sed
iure aut</p>
</div>
</div>
</div>
</div>
<h1>indicate by color</h1>
<ul>
<li class="white">white: margin-area</li>
<li class="blue">blue: border-area</li>
<li class="green">green: padding-area</li>
<li class="yellow">yellow: content-area</li>
</ul>
</body>
</html>