-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_css.css
More file actions
65 lines (54 loc) · 1.55 KB
/
Copy pathtest_css.css
File metadata and controls
65 lines (54 loc) · 1.55 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
*{margin: 0px; padding: 0px;}
ul{list-style: none;} /* 리스트 앞에 . 같은거 제거*/
a{text-decoration: none;} /* 링크에 밑줄 같은거 제거*/
header{
width: 800px; /*메인 이미지의 너비 사이즈와 같음*/
height: 95px;
background-color: #2d3a4b;
/* header 안에 요소들을 모두 absolute 포지션으로 배치할 것이라서 */
/* absolute 요소가 header의 좌상단을 기준으로 하려면 */
/* header의 position이 relative 여야만 함 */
position: relative;
}
/* 제목영역안에 있는 메인 로고 이미지 위치 지정 */
#logo{
position: absolute;
top: 30px;
left: 30px;
}
/* 제목영역안에 오른쪽 상단에 top_menu 배치 */
#top_menu{
position: absolute;
top: 20px;
right: 10px;
color: white;
}
/* top_menu a의 글시 하얀색으로 */
#top_menu a{color: white;}
/* 헤더 영역안에 네비게이션 메뉴 배치 */
nav{
position: absolute;
bottom: 10px;
left: 220px;
font-size: 16px;
}
nav li{
display: inline;
margin-left: 30px;
}
nav li a{color: white;}
/* 콘텐츠 영역의 알래에 있는 배너 이미지 inline으로 */
#content li{
display: inline;
margin-left: 50px;
}
/* footer 영역 */
footer{
width: 800px; /*헤더와 같은 사이즈*/
height: 90px;
margin-top: 20px;
text-align: center;
background-color: #f1f1f1;
}
/* 전체 페이지가 가운데로 오도록 */
#page{width: 820px; margin: 0px auto;}