Đặc điểm: Sunrise Gloss Drop Down Menus không sử dụng các file javarscrip do vậy các bạn có thể yên tâm về tốc độ của nó.
☼ Cách tiến hành:
1- Đăng nhập vào Blog
2- Vào thiết kế
3- Chọn Chỉnh sử HTML (Không cần mở rộng tiện ích mẫu)
4- Thêm đoạn code sau vào trước thẻ ]]></b:skin> .@charset "utf-8";
/* CSS Document */
body{
padding: 25px;
}
/* ----Navigation Structure -------- */
.nav-container-outer{
background: #990000;
padding: 0px;
height: 74px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghQczyVZ32fgPm0mk379-grxadJldHcWnuFCeoE0olo-XcFha6lfws0ZH3bkzsSizB6qOkglwGQoWmTtO9LvARzY5j2jBjfMEGlCqlWM24Eos7wMiqpfOiw7gYRhy90mpd4WxVrsphdGx4/s1600/nav-bg-namkna-blogspot.jpg);
}
.float-left{
float: left;
}
.float-right{
float: right;
}
.nav-container .divider{
display:block;
font-size:1px;
border-width:0px;
border-style:solid;
}
.nav-container .divider-vert{
float:left;
width:0px;
display: none;
}
.nav-container .item-secondary-title{
display:block;
cursor:default;
white-space:nowrap;
}
.clear{
font-size:1px;
height:0px;
width:0px;
clear:left;
line-height:0px;
display:block;
float:none;
}
.nav-container{
position:relative;
zoom:1;
margin: 0 auto;
}
.nav-container a, .nav-container li{
float:left;
display:block;
white-space:nowrap;
}
.nav-container div a, .nav-container ul a, .nav-container ul li{
float:none;
}
.nav-container ul{
left:-10000px;
position:absolute;
}
.nav-container, .nav-container ul{
list-style:none;
padding:0px;
margin:0px;
}
.nav-container li a{
float:none
}
.nav-container li{
position:relative;
}
.nav-container ul{
z-index:10;
}
.nav-container ul ul{
z-index:20;
}
.nav-container ul ul ul{
z-index:30;
}
.nav-container ul ul ul ul{
z-index:40;
}
.nav-container ul ul ul ul ul{
z-index:50;
}
li:hover>ul{
left:auto;
}
#nav-container ul {
top:100%;
}
#nav-container ul li:hover>ul{
top:0px;
left:100%;
}
/*^'^ Primary Items ^'^*/
#nav-container a{
padding:7px 17px 7px 18px;
margin: 10px 0px 0px 0px;
color: #FFFFFF;
font-family: Trebuchet MS, Arial, sans-serif, Helvetica;
font-size:14px;
text-decoration:none;
font-weight: bold;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBKGhcXROtxBIRO3ff_JjxP5cEUKabqWLGt1lwWC6MttWfIsODWVBlehfOWmL_gifpBPtg6uImib5lRTMK-smuQQSw6l9gLx525BU2LQN3PnpeEo9RR-FZjsr5tGAwnxPU51sC81fXnsrz/h120/item-primary-bg-namkna-blogspot.gif);
background-repeat: no-repeat;
background-position: top;
}
#nav-container a:hover{
color: #6C3600;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBKGhcXROtxBIRO3ff_JjxP5cEUKabqWLGt1lwWC6MttWfIsODWVBlehfOWmL_gifpBPtg6uImib5lRTMK-smuQQSw6l9gLx525BU2LQN3PnpeEo9RR-FZjsr5tGAwnxPU51sC81fXnsrz/h120/item-primary-bg-namkna-blogspot.gif);
background-repeat: no-repeat;
background-position: center;
}
/*^'^ Secondary Items Container ^'^*/
#nav-container div, #nav-container ul{
padding:10px 4px 10px 4px;
margin:0px 0px 0px 0px;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLbgPnhHyAahn39M3eP1bv8AQ7mIL4YlIcysw_9bk9IAOmIqE7GNCBvPs5f2J7vUWn_p6pR6d2i8hIE6BDJtB-hxZ6escCVFuGDWk3cZ8U_oVAqXwDjzc3k8j_cxVgOXYO2uDG-J-854OK/h120/item-secondary-container-bg-namkna-blogspot.jpg);
background-repeat: repeat-x;
background-color: #FF9900;
border-bottom: 1px solid #CA6500;
}
/* -------- Secondary Items------ */
#nav-container div a, #nav-container ul a{
padding:3px 10px 3px 6px;
background-color: #FFFFFF;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrseEKO-kQ-NjVeT5ALf2QLONhudagdu2fdaZeYgQ4OicerMpRvJ4Bc-grBSZ3KRYUZ3m_4Debb2ETukJ8wQXvYW98XTrXxGwZsiTuk0UqUXKFwAXl1v9w9cjvb97K-r3bK5xxzaIhzRh5/h120/item-secondary-bg-namkna-blogspot.jpg);
background-repeat: no-repeat;
background-position: 0px 22px;
font-size:11px;
border-width:0px;
border-style:none;
margin: 0px 0px 0px 0px;
width: 149px;
}
/*^'^ Secondary Items Hover State ^'^*/
#nav-container div a:hover, #nav-container ul a:hover{
background-color: #FFFFFF;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrseEKO-kQ-NjVeT5ALf2QLONhudagdu2fdaZeYgQ4OicerMpRvJ4Bc-grBSZ3KRYUZ3m_4Debb2ETukJ8wQXvYW98XTrXxGwZsiTuk0UqUXKFwAXl1v9w9cjvb97K-r3bK5xxzaIhzRh5/h120/item-secondary-bg-namkna-blogspot.jpg);
background-repeat: no-repeat;
color:#CC0000;
}
/* ---- Secondary Item Titles ---- */
#nav-container .item-secondary-title{
cursor:default;
padding:4px 0px 3px 7px;
color: #6C3600;
font-family: Arial, Trebuchet MS, Arial, sans-serif, Helvetica;
font-size:11px;
/* background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNj9-yCgw7GWi02wATN-DlNWbmL-DMdG8qnkrbguNn7Gma3RS8J3qE7QeCY13wHm4w_6aT1FLGb1_KOJb9Nc7ReY5H18MOPpNC9OF1f_tsHTaNZAhvU4odCaO832UjhOGx7peC8hhzubDV/h120/item-secondary-title-bg-namkna-blogspot.jpg); */
background-repeat: no-repeat;
font-weight:bold;
}
/*^'^ Horizontal Dividers ^'^*/
#nav-container .divider-horiz{
border-top-width:1px;
margin:5px 5px;
border-color: #C16100;
}
/*^'^ Vertical Dividers ^'^*/
#nav-container .divider-vert{
border-left-width:1px;
height:15px;
margin:4px 2px 0px 2px;
border-color:#AAAAAA;
}
6- Lưu lại
7- Thêm đoạn code bên dưới vào trước thẻ </header> . (hoặc thêm 1 HTML/Javarscrip và dán vào)
<div class="nav-container-outer">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7z1NOn3A5ZiaEESVxckVtUp7IMDiArybCaK6BncavJDCe8dZWWs6B5-wFwR0ZMnK__EUvivnkplSQs9otm57_6OjteDmGc3aWix29Bc2higr_8wgRSjXjIc7YOapGzRc9ZOhZPsYpOU5o/s1600/nav-bg-l.jpg" alt="" class="float-left" />
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgF0G8FKDtDmh1aKC4c9pycBQEhuF8p6kitWZQ0y02syROUG4XJJPx5cik-bzCUzGOnYQPqbYZbWBZ_diXxcwIc-zxtPRTtlzJKXdERe6EwkyTRkw3Rh6jqXPH0_X6BXap-O9mDYfUoJ73b/s1600/nav-bg-r.jpg" alt="" class="float-right" />
<ul id="nav-container" class="nav-container">
<li><a class="item-primary" href="#">HOME</a>
</li>
<li><span class="divider divider-vert" ></span></li>
<li><a class="item-primary" href="#">Products</a>
<ul style="width:150px;">
<li><a href="#">SoftwarePlus</a></li>
<li><a href="#">MagicDriver</a></li>
<li><a href="#">GreatFX</a></li>
<li><a href="#">SampleSoft</a></li>
<li><a href="#">UnDoIt</a></li>
<li><a href="#">100% CSS Menu</a></li>
<li><a href="#;">With Cross-Browser</a></li>
<li><a href="#;">Dropdowns</a></li>
<li><a href="#;">Absolutely NO Javascript</a></li>
<li><a href="#;">Being Used On</a></li>
<li><a href="#;">These Menus</a></li>
<li><span class="divider divider-horiz" ></span></li>
<li><a href="#;">Example Of a Divider</a></li>
<li><a href="#;">With No Title</a></li>
</ul></li>
<li><span class="divider divider-vert" ></span></li>
<li><a class="item-primary" href="#">Quality</a>
<ul style="width:150px;">
<li><a href="#">SoftwarePlus</a></li>
<li><a href="#">MagicDriver</a></li>
<li><a href="#">GreatFX</a></li>
<li><a href="#">SampleSoft</a></li>
<li><a href="#">UnDoIt</a></li>
<li><a href="#">100% CSS Menu</a></li>
<li><a href="#;">With Cross-Browser</a></li>
<li><a href="#;">Dropdowns</a></li>
<li><a href="#;">Absolutely NO Javascript</a></li>
<li><a href="#;">Being Used On</a></li>
<li><a href="#;">These Menus</a></li>
<li><span class="divider divider-horiz" ></span></li>
<li><a href="#;">Example Of a Divider</a></li>
<li><a href="#;">With No Title</a></li>
</ul></li>
<li><span class="divider divider-vert" ></span></li>
<li><a class="item-primary" href="#">Services</a>
<ul style="width:150px;">
<li><span class="item-secondary-title" >Title For Links</span></li>
<li><a href="#">These Links Still Appear</a></li>
<li><a href="#">Just Like The Others</a></li>
<li><a href="#">Even When Under A Title</a></li>
<li><span class="divider divider-horiz" ></span></li>
<li><span class="item-secondary-title" >Title After Divider</span></li>
<li><a href="#">Once Again...</a></li>
<li><a href="#">These Links Still Appear</a></li>
<li><a href="#">Just Like The Others</a></li>
<li><a href="#">Even When Under A Title</a></li>
</ul></li>
<li><span class="divider divider-vert" ></span></li>
<li><a class="item-primary" href="#;">Very Long Item</a>
<ul style="width:150px;">
<li><span class="item-secondary-title" >Title For Links</span></li>
<li><a href="#">These Links Still Appear</a></li>
<li><a href="#">Just Like The Others</a></li>
<li><a href="#">Even When Under A Title</a></li>
<li><span class="divider divider-horiz" ></span></li>
<li><span class="item-secondary-title" >Title After Divider</span></li>
<li><a href="#">Once Again...</a></li>
<li><a href="#">These Links Still Appear</a></li>
<li><a href="#">Just Like The Others</a></li>
<li><a href="#">Even When Under A Title</a></li>
</ul></li>
<li><span class="divider divider-vert" ></span></li>
<li><a class="item-primary" href="#;">Fully Flexible</a>
<ul style="width:150px;">
<li><span class="item-secondary-title" >Title For Links</span></li>
<li><a href="#">These Links Still Appear</a></li>
<li><a href="#">Just Like The Others</a></li>
<li><a href="#">Even When Under A Title</a></li>
<li><span class="divider divider-horiz" ></span></li>
<li><span class="item-secondary-title" >Title After Divider</span></li>
<li><a href="#">Once Again...</a></li>
<li><a href="#">These Links Still Appear</a></li>
<li><a href="#">Just Like The Others</a></li>
<li><a href="#">Even When Under A Title</a></li>
</ul></li>
<li class="clear"> </li></ul>
</div>
Chúc thành công!
Comments[ 0 ]
Đăng nhận xét