메뉴 색상 및 크기 바꾸기
{이미지: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 팁자료실
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 2575 | 9개월 전 | 549 | ||
| 2574 | 9개월 전 | 924 | ||
| 2573 |
두리삼촌v
|
9개월 전 | 597 | |
| 2572 | 9개월 전 | 545 | ||
| 2571 | 9개월 전 | 590 | ||
| 2570 |
두리삼촌v
|
9개월 전 | 627 | |
| 2569 |
두리삼촌v
|
9개월 전 | 656 | |
| 2568 |
두리삼촌v
|
9개월 전 | 451 | |
| 2567 |
두리삼촌v
|
9개월 전 | 433 | |
| 2566 | 9개월 전 | 729 | ||
| 2565 | 9개월 전 | 656 | ||
| 2564 | 10개월 전 | 463 | ||
| 2563 | 10개월 전 | 1017 | ||
| 2562 |
|
10개월 전 | 666 | |
| 2561 | 10개월 전 | 908 | ||
| 2560 | 10개월 전 | 645 | ||
| 2559 |
|
10개월 전 | 495 | |
| 2558 | 10개월 전 | 648 | ||
| 2557 | 10개월 전 | 944 | ||
| 2556 | 10개월 전 | 1323 | ||
| 2555 | 10개월 전 | 740 | ||
| 2554 |
|
10개월 전 | 735 | |
| 2553 | 10개월 전 | 663 | ||
| 2552 | 10개월 전 | 854 | ||
| 2551 | 10개월 전 | 753 | ||
| 2550 |
|
10개월 전 | 707 | |
| 2549 | 10개월 전 | 1015 | ||
| 2548 | 10개월 전 | 660 | ||
| 2547 | 10개월 전 | 1192 | ||
| 2546 | 10개월 전 | 651 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기