-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path04_style_student.css
133 lines (111 loc) · 3.14 KB
/
04_style_student.css
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
129
130
131
132
h1{
text-align: center;
font-size: 100%;
line-height: 120%;
padding: 5% 0;
}
img{
width: auto;
max-width: 100%;
height: auto;
}
header{
background: #405580;
width: 100%;
height: 45px;
position: fixed;
top: 0;
left: 0;
opacity: 0.8;
z-index: 100;
}
nav{
float: right;
padding: 5px 20px 20px 0;
}
nav ul{
list-style: none;
}
.active{
color: #fff;
text-decoration: underline;
}
section p{
font-size: 15px;
}
.clear{
clear: both;
}
footer{
background: #333;
width: 100%;
overflow: hidden;
opacity: 0.9;
}
p{
padding: 1%;
}
footer p, footer h1{
color: #fff;
}
nav ul li{
/* แสดงผลเป็นแบบ inline-block */
/* ให้ลอยอยู่ทางซ้าย */
/* ระยะห่างภายในเป็น 7px */
/* ฟอนต์มีขนาด 17px */
display: inline-block;
font-size: 17px;
padding: 7px;
}
a{
/* สีข้อความเป็น fff */
/* ลิงก์ไม่ต้องมีเส้นใต้ */
/* ขนาดของฟอนต์เป็นตัวหนา */
color: #fff;
text-decoration: none;
font-weight: bold;
}
body{
/* พื้นหลังสี f0f0f0 */
/* สีข้อความเป็น 555 */
/* ระยะห่างภายนอกเป็น 0 */
background-color: #f0f0f0;
color: #555;
margin: 0;
}
/* ซีเล็กเตอร์อเนกประสงค์ ให้มีการแสดงผลดังนี้ */
*{
/* ระยะห่างภายนอกเป็น 0 */
/* ระยะห่างภายในเป็น 0 */
/* กำหนดให้เส้นขอบเป็น 0 */
margin: 0;
padding: 0;
border: 0;
}
/* แท็ก section ให้มีการแสดงผลดังนี้ */
section{
/* ความกว้างเป็น 29% */
/* ให้ลอยอยู่ทางซ้าย */
/* ระยะห่างภายนอกเป็น 4% 2% */
/* ข้อความตัวอักษรอยู่ตำแหน่งตรงกลาง */
/* ฟอนต์มีขนาด 15px */
width: 29%;
float: left;
margin: 4% 2%;
text-align: center;
font-size: 15px;
}
/* class ชื่อ second ให้มีการแสดงผลดังนี้ */
.second{
/* เส้นขอบด้านบนมีขนาด 1 px, เป็นเส้นทึบ, สี 4d4e50 */
/* ตำแหน่งตัวอักษรอยู่ตรงกลาง */
border: 1px solid #4d4e50;
text-align: center;
}
/* แท็ก a เมื่อเลื่อนเมาส์มาวางที่ลิงค์แล้วให้มีการแสดงผลดังนี้ */
a:hover{
/* สีข้อความเป็น red */
/* ลิงก์กำหนดให้มีเส้นใต้ */
color: red;
text-decoration: underline;
}