티스토리 북 클럽 스킨 상단메뉴 고정하기
- Blog/Tistory
- 2022. 9. 14.
Contents
개요
티스토리 북 클럽(Book Club) 스킨에서 상단 로고 및 메뉴의 위치를 고정하는 방법
스킨 편집의 CSS 탭에서 아래와 같이 #header, #aside, #dimmed 를 수정하면 된다.
STEP 1 - HTML #header 수정
수정전 :
#header {
border-bottom: 1px solid #eee;
}
수정후 :
#header {
z-index: 1010;
background-color: #fff;
box-sizing: border-box;
position: sticky;
position: -webkit-sticky;
top: 0;
}
STEP 2 - HTML #aside 수정
수정전 :
#aside {
float: right;
width: 21.296296296296296%;
padding: 75px 0 32px;
box-sizing: border-box;
}
수정후 :
#aside {
position: fixed;
top: 0;
right: -278px;
z-index: 1030;
float: none;
overflow: auto;
width: 278px;
height: 100%;
padding: 94px 24px 40px;
background-color: #fff;
box-sizing: border-box;
transition: left .5s;
-webkit-transition: right .5s;
}
STEP 3 - HTML #dimmed 수정
수정전 :
#dimmed {
position: fixed;
top: 0;
left: 0;
z-index: 300;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.6);
}
수정후 :
#dimmed {
position: fixed;
top: 0;
left: 0;
z-index: 1020;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.6);
}
'Blog > Tistory' 카테고리의 다른 글
04. 티스토리 블로그 북클럽 뉴북 썸네일 크기 변경 (0) | 2022.09.19 |
---|---|
03. 티스토리 블로그 스킨 HTML & CSS 수정 (0) | 2022.09.17 |
02. 티스토리 블로그 검색엔진 등록(네이버, 다음, 구글, 줌, 빙, 야후) (0) | 2022.09.16 |
01. 티스토리 블로그 기본 설정 (0) | 2022.09.16 |
티스토리 본문 자동 목차 만들기 (0) | 2022.09.14 |