Category
show
전체 (775)
웹표준, 웹접근성™ (5)
웹프로그래밍™ (360)
웹기획™ (0)
웹디자인™ (5)
서버™ (32)
데이터베이스™ (43)
개발자료 (9)
트랜드 (60)
Study English (2)
블루비 (70)
오피스 다이어리 (19)
Textcube (2)
이슈 (20)
컴퓨터 악세사리 (18)
엔터테인먼트 (24)
좋은글 (73)
재테크 (1)
이벤트 (4)

하단 고정 레이어 스타일(CSS) 따라하기

웹프로그래밍™/XHTML/CSS 2007/11/30 14:21 by 블루비 Total 1557 : Today 1 : Yesterday 12
Ray Of Light for TT - darklight ver.1.1(사용자 수정본) 의 스킨을 보시면 하단에 메뉴 레이어가
위치하고 스크롤이 되어도 위치가 고정되어 있습니다.

이와 같은 하단에 고정된 레이어를 사용하고자 하시는 분들을 위해 샘플소스를 만들어 봤습니다.
꼭 하단에만 위치할 필요는 없죠.. 소스를 고치면 상단 고정도 가능합니다.

샘플보기


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<title> new document </title>
<style type='text/css'>
* {
margin:0;
padding:0;
}

html {
height:100%;
width:100%;
overflow:hidden;
}

body {
margin:0;
padding:0;
}

#header {
color:#fff;
position:absolute;
bottom:0pt;
height:50px;
background-color:#000;
width:90%;
z-index:99;
}
#body {
width:100%;
position:absolute;
height:100%;
overflow-y:scroll;
}
</style>
</head>

<body>
<div id='header'>
하단 고정 레이어
</div>

<div id='body'>
<div style='height:400px;background-color:#660000;width:300px'>
</div>
<div style='height:400px;background-color:#FF6600;width:300px'>
</div>
<div style='height:400px;background-color:#00FF66;width:300px'>
</div>
</div>


</body>
</html>
2007/11/30 14:21 2007/11/30 14:21

TRACKBACK :: http://blueb.net/blog/trackback/966

  1. ggo 수정/삭제 답변 달기

    세상에..ㅠㅁㅠ 님 정말 감사해요
    완전 몇시간동안 해매고 있었는데,,
    구글에서 살짝 검색하니,
    바로 첨에 님 글 봤습니다..
    완전 금방 해결하고 감사합니다.
    복받으실꺼에요~~!!!ㅎ 2008/03/12 16:50

    1. 블루비 수정/삭제

      ㅎㅎ 넹 복많이 받겠습니다.
      종종 놀러 오세여...^^ 2008/03/12 17:20

Leave a Comment
[로그인][오픈아이디란?]
1  ... 266 267 268 269 270 271 272 273 274  ... 775 

달력

«   2008/11   »
            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