메뉴 색상 및 크기 바꾸기
{이미지:0}
/* gnb js off */
#gnb {position:relative;margin:-1px 0 0;border-bottom:1px solid #c3c7c5;background:#383a3f}
#gnb h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#gnb_1dul {margin:0 auto;padding:0;width:980px;zoom:1}
#gnb_1dul:after {display:block;visibility:hidden;clear:both;content:""}
.gnb_1dli {z-index:10;clear:both;zoom:1}
.gnb_1dli:after {display:block;visibility:hidden;clear:both;content:""}
.gnb_1da {display:block;float:left;width:130px;height:35px;font-weight:bold;line-height:2.95em;text-decoration:none}
.gnb_1da:focus, .gnb_1da:hover {text-decoration:none}
.gnb_2dul {float:left;width:auto}
.gnb_2dli {float:left}
.gnb_2da {display:block;float:left;width:80px;height:35px;line-height:2.95em;text-decoration:none}
.gnb_2da:focus, .gnb_2da:hover {text-decoration:none}
/* gnb js on */
.gnb_js {}
.gnb_js #gnb_1dul {zoom:1}
.gnb_js #gnb_1dul:after {display:block;visibility:hidden;clear:both;content:""}
.gnb_js .gnb_1dli {clear:none;position:relative;float:left}
.gnb_js .gnb_1da {color:#fff;text-align:center}
.gnb_js .gnb_1dli_air a {float:none;background:#666666;color:#fff}
.gnb_js .gnb_1dli_on a {float:none;background:#666666;color:#fff}
.gnb_js .gnb_2dul {display:none;position:absolute;top:35px}
.gnb_js .gnb_2dli a {display:inline-block;float:none;padding:0 10px;width:110px;background:#fff;color:#000;text-align:left}
.gnb_js .gnb_2dli a:focus, .gnb_js .gnb_2dli a:hover {background:#484848;color:#fff}
.gnb_1dli_over .gnb_2dul {display:block;left:-1px;width:130px;border:1px solid #c3c7c5;border-top:0;background:#fff}
.gnb_1dli_over2 .gnb_2dul {display:block;right:-1px;width:130px;border:1px solid #c3c7c5;border-top:0;background:#fff}
.gnb_empty {width:100%;height:35px;text-align:center;line-height:2.95em}
메뉴 색상 구성은 admin.css가 더 이쁘지요.
복사해서 사용해도 되지만... default.css를 수정하는 방법을 사용해봅니다.
(admin.css의 소스를 사용하면... 판올림 할 때마다 헷갈려서...)
몇군데 추가한 부분도 있습니다.
위 소스는 제가 적용한 소스이고... 아래와 같이 세부사항을 설명드립니다.
설명한 부분에 대하여 원하는대로 입력하면 됩니다.
/* gnb js off */
#gnb {position:relative;margin:-1px 0 0;border-bottom:1px solid #c3c7c5;background:[1차 메뉴 배경색]}
#gnb h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#gnb_1dul {margin:0 auto;padding:0;width:[전체폭];zoom:1}
#gnb_1dul:after {display:block;visibility:hidden;clear:both;content:""}
.gnb_1dli {z-index:10;clear:both;zoom:1}
.gnb_1dli:after {display:block;visibility:hidden;clear:both;content:""}
.gnb_1da {display:block;float:left;width:[1차 메뉴 폭];height:35px;font-weight:bold;line-height:2.95em;text-decoration:none}
.gnb_1da:focus, .gnb_1da:hover {text-decoration:none}
.gnb_2dul {float:left;width:auto}
.gnb_2dli {float:left}
.gnb_2da {display:block;float:left;width:80px;height:35px;line-height:2.95em;text-decoration:none}
.gnb_2da:focus, .gnb_2da:hover {text-decoration:none}
/* gnb js on */
.gnb_js {}
.gnb_js #gnb_1dul {zoom:1}
.gnb_js #gnb_1dul:after {display:block;visibility:hidden;clear:both;content:""}
.gnb_js .gnb_1dli {clear:none;position:relative;float:left}
.gnb_js .gnb_1da {color:[1차 메뉴 글자색];text-align:center} // 변경
.gnb_js .gnb_1dli_air a {float:none;background:[???];color:[???]}
.gnb_js .gnb_1dli_on a {float:none;background:[1차 메뉴 오버시 배경색];color:[1차 메뉴 오버시 글자색]}
.gnb_js .gnb_2dul {display:none;position:absolute;top:35px}
.gnb_js .gnb_2dli a {display:inline-block;float:none;padding:0 10px;width:[2차 메뉴 내용 폭];background:[2차 메뉴 배경색];color:[2차 메뉴 글자색];text-align:left} // 변경
.gnb_js .gnb_2dli a:focus, .gnb_js .gnb_2dli a:hover {background:[2차 메뉴 오버시 배경색];color:[2차 메뉴 오버시 글자색]} // 추가
.gnb_1dli_over .gnb_2dul {display:block;left:-1px;width:[2차 메뉴 폭];border:1px solid [2차 메뉴 전체 테두리];border-top:0;background:[???]} // 변경
.gnb_1dli_over2 .gnb_2dul {display:block;right:-1px;width:[2차 메뉴 폭];border:1px solid [???];border-top:0;background:[???]} // 변경
.gnb_empty {width:100%;height:35px;text-align:center;line-height:2.95em}
[2차 메뉴 폭] = [2차 메뉴 내용 폭] + 10px + 10px
'10px'은 위에 설정된 padding 값입니다.
위 소스를 복사해서 사용하실 것 같으면... 주석은 삭제하십시오.
'.gnb_js .gnb_1dli_air a'와 '.gnb_1dli_over2 .gnb_2dul'
은 어디에 적용되는지 모르겠습니다. 삭제해도 상관 없는 듯 하네요.
/* gnb js off */
#gnb {position:relative;margin:-1px 0 0;border-bottom:1px solid #c3c7c5;background:#383a3f}
#gnb h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#gnb_1dul {margin:0 auto;padding:0;width:980px;zoom:1}
#gnb_1dul:after {display:block;visibility:hidden;clear:both;content:""}
.gnb_1dli {z-index:10;clear:both;zoom:1}
.gnb_1dli:after {display:block;visibility:hidden;clear:both;content:""}
.gnb_1da {display:block;float:left;width:130px;height:35px;font-weight:bold;line-height:2.95em;text-decoration:none}
.gnb_1da:focus, .gnb_1da:hover {text-decoration:none}
.gnb_2dul {float:left;width:auto}
.gnb_2dli {float:left}
.gnb_2da {display:block;float:left;width:80px;height:35px;line-height:2.95em;text-decoration:none}
.gnb_2da:focus, .gnb_2da:hover {text-decoration:none}
/* gnb js on */
.gnb_js {}
.gnb_js #gnb_1dul {zoom:1}
.gnb_js #gnb_1dul:after {display:block;visibility:hidden;clear:both;content:""}
.gnb_js .gnb_1dli {clear:none;position:relative;float:left}
.gnb_js .gnb_1da {color:#fff;text-align:center}
.gnb_js .gnb_1dli_air a {float:none;background:#666666;color:#fff}
.gnb_js .gnb_1dli_on a {float:none;background:#666666;color:#fff}
.gnb_js .gnb_2dul {display:none;position:absolute;top:35px}
.gnb_js .gnb_2dli a {display:inline-block;float:none;padding:0 10px;width:110px;background:#fff;color:#000;text-align:left}
.gnb_js .gnb_2dli a:focus, .gnb_js .gnb_2dli a:hover {background:#484848;color:#fff}
.gnb_1dli_over .gnb_2dul {display:block;left:-1px;width:130px;border:1px solid #c3c7c5;border-top:0;background:#fff}
.gnb_1dli_over2 .gnb_2dul {display:block;right:-1px;width:130px;border:1px solid #c3c7c5;border-top:0;background:#fff}
.gnb_empty {width:100%;height:35px;text-align:center;line-height:2.95em}
메뉴 색상 구성은 admin.css가 더 이쁘지요.
복사해서 사용해도 되지만... default.css를 수정하는 방법을 사용해봅니다.
(admin.css의 소스를 사용하면... 판올림 할 때마다 헷갈려서...)
몇군데 추가한 부분도 있습니다.
위 소스는 제가 적용한 소스이고... 아래와 같이 세부사항을 설명드립니다.
설명한 부분에 대하여 원하는대로 입력하면 됩니다.
/* gnb js off */
#gnb {position:relative;margin:-1px 0 0;border-bottom:1px solid #c3c7c5;background:[1차 메뉴 배경색]}
#gnb h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#gnb_1dul {margin:0 auto;padding:0;width:[전체폭];zoom:1}
#gnb_1dul:after {display:block;visibility:hidden;clear:both;content:""}
.gnb_1dli {z-index:10;clear:both;zoom:1}
.gnb_1dli:after {display:block;visibility:hidden;clear:both;content:""}
.gnb_1da {display:block;float:left;width:[1차 메뉴 폭];height:35px;font-weight:bold;line-height:2.95em;text-decoration:none}
.gnb_1da:focus, .gnb_1da:hover {text-decoration:none}
.gnb_2dul {float:left;width:auto}
.gnb_2dli {float:left}
.gnb_2da {display:block;float:left;width:80px;height:35px;line-height:2.95em;text-decoration:none}
.gnb_2da:focus, .gnb_2da:hover {text-decoration:none}
/* gnb js on */
.gnb_js {}
.gnb_js #gnb_1dul {zoom:1}
.gnb_js #gnb_1dul:after {display:block;visibility:hidden;clear:both;content:""}
.gnb_js .gnb_1dli {clear:none;position:relative;float:left}
.gnb_js .gnb_1da {color:[1차 메뉴 글자색];text-align:center} // 변경
.gnb_js .gnb_1dli_air a {float:none;background:[???];color:[???]}
.gnb_js .gnb_1dli_on a {float:none;background:[1차 메뉴 오버시 배경색];color:[1차 메뉴 오버시 글자색]}
.gnb_js .gnb_2dul {display:none;position:absolute;top:35px}
.gnb_js .gnb_2dli a {display:inline-block;float:none;padding:0 10px;width:[2차 메뉴 내용 폭];background:[2차 메뉴 배경색];color:[2차 메뉴 글자색];text-align:left} // 변경
.gnb_js .gnb_2dli a:focus, .gnb_js .gnb_2dli a:hover {background:[2차 메뉴 오버시 배경색];color:[2차 메뉴 오버시 글자색]} // 추가
.gnb_1dli_over .gnb_2dul {display:block;left:-1px;width:[2차 메뉴 폭];border:1px solid [2차 메뉴 전체 테두리];border-top:0;background:[???]} // 변경
.gnb_1dli_over2 .gnb_2dul {display:block;right:-1px;width:[2차 메뉴 폭];border:1px solid [???];border-top:0;background:[???]} // 변경
.gnb_empty {width:100%;height:35px;text-align:center;line-height:2.95em}
[2차 메뉴 폭] = [2차 메뉴 내용 폭] + 10px + 10px
'10px'은 위에 설정된 padding 값입니다.
위 소스를 복사해서 사용하실 것 같으면... 주석은 삭제하십시오.
'.gnb_js .gnb_1dli_air a'와 '.gnb_1dli_over2 .gnb_2dul'
은 어디에 적용되는지 모르겠습니다. 삭제해도 상관 없는 듯 하네요.
댓글 11개
12년 전
이쁘게 잘 바꾸셨네요. ^^
한가지, over2 는 메뉴가 오른쪽 끄트머리께에 위치할 때, 서브메뉴 시작 기준점을 right 로 잡아주는 역할을 합니다.
메뉴수가 많으면 그대로 사용하시는 것이 좋습니다.
한가지, over2 는 메뉴가 오른쪽 끄트머리께에 위치할 때, 서브메뉴 시작 기준점을 right 로 잡아주는 역할을 합니다.
메뉴수가 많으면 그대로 사용하시는 것이 좋습니다.
12년 전
그렇군요. 도대체 어디에 적용되는지 몰라 헤메었는데... 고맙습니다~^^
12년 전
색배합이 정말 이쁘네요!
justin57s
12년 전
좋은정보감사요
12년 전
5버전이 점점 더 좋아지는 ...
12년 전
좋은 정보 감사드려요
12년 전
굿 정보 감사드립니다.
11년 전
메뉴 폰트의 크기설정은 어디서되는건가요?
11년 전
.gnb_js .gnb_1da {color:[1차 메뉴 글자색];text-align:center} // 변경
와
.gnb_js .gnb_2dli a {display:inline-block;float:none;padding:0 10px;width:[2차 메뉴 내용 폭];background:[2차 메뉴 배경색];color:[2차 메뉴 글자색];text-align:left} // 변경
이 2군데에 [font-size:1.2em;] 이런 식으로 원하는 크기를 삽입해주면 되네요(괄호는 제외)
늘어난 글씨들이 다 보이지 않는 경우... 'gnb js off'와 'gnb js on'의 width 4곳을 적절히 수정하면 됩니다.
와
.gnb_js .gnb_2dli a {display:inline-block;float:none;padding:0 10px;width:[2차 메뉴 내용 폭];background:[2차 메뉴 배경색];color:[2차 메뉴 글자색];text-align:left} // 변경
이 2군데에 [font-size:1.2em;] 이런 식으로 원하는 크기를 삽입해주면 되네요(괄호는 제외)
늘어난 글씨들이 다 보이지 않는 경우... 'gnb js off'와 'gnb js on'의 width 4곳을 적절히 수정하면 됩니다.
11년 전
감사합니다.
7년 전
감사합니다
게시판 목록
그누보드5 팁자료실
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 공지 | 3년 전 | 4426 | ||
| 144 |
Lemios
|
11년 전 | 6681 | |
| 143 | 11년 전 | 13451 | ||
| 142 |
|
11년 전 | 6101 | |
| 141 | 11년 전 | 5447 | ||
| 140 | 11년 전 | 6477 | ||
| 139 | 11년 전 | 6580 | ||
| 138 | 11년 전 | 12131 | ||
| 137 | 11년 전 | 9988 | ||
| 136 | 11년 전 | 7131 | ||
| 135 |
skaxoddl
|
11년 전 | 9793 | |
| 134 | 11년 전 | 7513 | ||
| 133 | 11년 전 | 7355 | ||
| 132 | 11년 전 | 5415 | ||
| 131 | 11년 전 | 9682 | ||
| 130 | 11년 전 | 5253 | ||
| 129 | 11년 전 | 14679 | ||
| 128 | 11년 전 | 11966 | ||
| 127 | 11년 전 | 9746 | ||
| 126 | 11년 전 | 9708 | ||
| 125 | 11년 전 | 6269 | ||
| 124 | 11년 전 | 7685 | ||
| 123 | 11년 전 | 5750 | ||
| 122 | 11년 전 | 5556 | ||
| 121 | 11년 전 | 8458 | ||
| 120 | 12년 전 | 7777 | ||
| 119 | 12년 전 | 11892 | ||
| 118 | 12년 전 | 9397 | ||
| 117 | 12년 전 | 7707 | ||
| 116 | 12년 전 | 6709 | ||
| 115 |
|
12년 전 | 6829 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기