css 질문,,, footer 출력이 안되네요 ㅜ
hsej
11년 전
조회 4,169
css 질문입니다.
footer 출력이 안되는데 초보자라 잘 모르겠어요 ㅜ
*{margin:0; padding:0;}
body {
font-family: Calibri, Arial, "맑은 고딕", "돋움", "돋움한체";
color: #212121;
}
li {list-style:none;}
a {text-decoration:0;}
img {border:0;}
#main_header {
/*중앙 정렬*/
width:1105px; margin:0 auto;
/*절대 좌표*/
height:50px;
position:relative;
}
#main_header > #title {
position:absolute;
}
#main_header > #main_gnb {
position: absolute;
right: 0px;
top: 17px;
width: 710px;
}
#title {background:#ff3f51;
}
#main_gnb > ul {overflow:hidden;}
#main_gnb > ul > li {float:left;}
#main_gnb > ul > li > a {
display:block;
padding:10px 0px 0px 65px;
text-decoration:none;
color:#fff;
font-family: Calibri, Arial, "맑은 고딕", "돋움", "돋움한체";
font-size:15px;
font-weight:bold;
}
#main_gnb > ul > li > a:hover {
color:#333333;
text-decoration:none;
font-weight:bold;
}
#content1 {
/*중앙 정렬*/
width:1105px; height: 400px; margin:0 auto;
/*수평 레이아웃 구성*/
overflow:hidden;
padding:10px 10px 10px 10px;
}
#content2 {
/*중앙 정렬*/
width:1105px; height: 100px margin:0 auto;
/*수평 레이아웃 구성*/
overflow:hidden;
padding:10px 10px 10px 10px;
}
#footer {
overflow: hidden;
position: absolute;
width:1105px; height:100px;
margin:0 auto;
background-color:#5a5a5a;
}
왜그럴까요,,,
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인