-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathcss_attribute.html
More file actions
128 lines (94 loc) · 2.33 KB
/
css_attribute.html
File metadata and controls
128 lines (94 loc) · 2.33 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!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>Document</title>
<style>
p:nth-child(1) {
/* background-color: mediumvioletred; */
/* background-color: rgb(255, 255, 0); */
background-color: rgba(255, 0, 0, 0.26);
/* background-color: #ff0000; */
/* background-color: #eee; */
}
p:nth-child(2) {
font-size: 100%;
}
p:nth-child(3) {
/* background-color: rgba(255, 0, 0, 0.26); */
font-size: 150%;
}
p:nth-child(4) {
font-size: 200%;
color: olive;
}
p:nth-child(5) {
font-size: 1.0em;
}
p:nth-child(6) {
font-size: 1.5em;
}
p:nth-child(7) {
font-size: 2.0em;
}
p:nth-child(8) {
font-size: 16px;
}
p:nth-child(9) {
font-size: 24px;
}
p:nth-child(10) {
font-size: 32px;
}
p:last-child {
background-color: midnightblue;
}
</style>
<style>
body {
background-image: url(../mini2.jpg);
}
div.box {
width: 50%;
height: 300px;
background-image: url(../images/starwars.jpg);
}
</style>
<style>
body, div {
margin : 0;
padding: 0;
}
div.border_box {
width : 240px;
height : 240px;
background-color: #FFF;
/* border-width: 10px;
border-style: double;
border-color: royalblue; */
border: 10px double royalblue;
padding : 10px;
margin : 10px;
}
</style>
</head>
<body>
<div class="border_box">
border_box
</div>
<div class="box">
</div>
<p>안녕하세요1</p>
<p>안녕하세요2</p>
<p>안녕하세요3</p>
<p>안녕하세요4</p>
<p>안녕하세요6</p>
<p>안녕하세요7</p>
<p>안녕하세요8</p>
<p>안녕하세요8</p>
<p>안녕하세요9</p>
<p>안녕하세요10</p>
</body>
</html>