forked from easysIT/doit_HTML-CSS-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstructure.css
More file actions
141 lines (129 loc) · 2.82 KB
/
structure.css
File metadata and controls
141 lines (129 loc) · 2.82 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
129
130
131
132
133
134
135
136
137
138
139
140
141
@import url('https://fonts.googleapis.com/css2?family=Merienda:wght@700&display=swap');
* {
margin:0; /* 마진 리셋 */
padding:0; /* 패딩 리셋 */
box-sizing: border-box; /* 박스 영역은 테두리까지 */
}
a {
text-decoration:none; /* 텍스트 링크 밑줄 없애기 */
}
ul {
list-style: none;
}
#container {
margin:0 auto; /* 화면 중앙에 배치 */
width:1200px; /* 너비 */
}
/*********************************/
/* 헤더 영역 - 로고와 내비게이션 */
/*********************************/
header{
width:100%; /* 너비 */
height:100px; /* 높이 */
background-color:#045;
}
/* 로고 */
#logo{
float:left; /* 왼쪽으로 플로팅 */
width:250px; /* 너비 */
height:100px; /* 높이 */
line-height:100px; /* 세로로 중간에 맞춤 - 줄간격을 높이 값과 같게 */
padding-left:20px; /* 왼쪽에 여백 */
}
#logo h1 {
font-family:'Merienda', cursive;
font-weight:700;
font-size:40px; /* 글자 크기 */
color:#fff; /* 글자 색*/
text-shadow:0 -1px 0 #222; /* 그림자 색 */
}
/* 내비게이션 */
nav{
float:right; /* 오른쪽으로 플로팅 */
width:900px; /* 너비 */
height:100px; /* 메뉴 영역 높이 */
padding-top:40px; /* 메뉴를 아래로 내리기 위해 */
}
#topMenu {
height:60px;
}
#topMenu > li {
float:left; /* 메뉴 항목을 왼쪽으로 플로팅 */
position: relative;
}
#topMenu > li > a{
display:block; /* 링크 텍스트는 블록으로 */
font-size:1.1em;
color:#fff; /* 글자 색 */
font-weight:600; /* 글자 굵기 */
padding:20px 60px; /* 패딩 */
}
#topMenu > li > a:hover {
color:#1fa8f8;
text-shadow:0 -2px #222;
}
/* 본문 */
.contents {
width:1000px;
margin:50px auto;
}
main > section {
margin-top:60px;
}
main h2 {
font-size:1.5em;
line-height: 2.5;
}
main div {
margin-top:20px;
}
main h3 {
font-size:1.2em;
line-height:2.2;
}
.detail p {
line-height: 2.0;
color:#222;
}
.detail > img {
float:left;
margin-right:50px;
border-radius:20px;
}
.schedule h4 {
font-size:1.2em;
}
.schedule ul {
list-style: none;
}
.schedule ul li {
line-height: 2;
}
/******************/
/* 푸터 영역 */
/******************/
footer{
width:1200px; /* 너비 */
height:100px; /* 높이 */
border-top:2px solid #222;
}
#bottomMenu{
width:100%;
height:20px;
margin-left:60px;
}
#bottomMenu ul {
margin-top:15px;
}
#bottomMenu ul li{
float:left; /* 가로로 배치 */
padding:5px 20px;
border-right:1px solid #ddd; /* 항목 오른쪽에 테두리 */
}
#bottomMenu ul li:last-child{
border:none; /* 마지막 항목에는 오른쪽 테두리 없음 */
}
#bottomMenu ul li a, #bottomMenu ul li a:visited {
font-size:15px; /* 글자 크기 */
color:#666; /* 글자 색 */
}