DEMO |
1. Code
CSS
/* The CSS Code for the menu starts here bloggertrix.com */
#btrix-nav {margin: 100px auto;list-style: none;width: 632px;height: 87px;overflow-y: hidden;}
#btrix-nav li {float: left;}
#btrix-nav li a {display: block;color: white;width: 120px;height: 61px;margin-top: 24px;text-decoration: none;text-align: center;border-top: 1px solid #bbb;border-bottom: 1px solid #555;}
#btrix-nav li a span.aname {font: bold 17px/61px "Arial";color: #fff;text-transform: uppercase;cursor: pointer;position: relative;top: 0;transition: top .5s ease;text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);}
#btrix-nav li a img {position: relative;top: 0;transition: top .5s ease;}
#btrix-nav li a:hover {cursor: pointer;}
#btrix-nav li a:hover img {top: -85px;}
#btrix-nav li a:hover .aname {top: 85px;}
#btrix-nav li:nth-child(1) a {background: #3eb006;border-radius: 5px 0 0 5px;border-left: 1px solid #bbb;}
#btrix-nav li:nth-child(2) a {background: #9bc704;}
#btrix-nav li:nth-child(3) a {background: #0dc3ff;}
#btrix-nav li:nth-child(4) a {background: #51a2ec;}
#btrix-nav li:nth-child(5) a {background: #6e3cab;border-radius: 0 5px 5px 0;border-right: 1px solid #555;}
HTML
<div id="btrix-nav">
<li>
<a href="http://www.itviet360.com/"><span class="aname">Homes</span>
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9hcyGrVigc3Fmm3UgNHjVABNLuGywKlQdQEJgwNb0iC6mu8ggdu6WqIfoT0C3g23h8UGAo4t2znlUFosYY0gazwAVFo03lM0dCpAb5kEo84-JPhRsOt5uqSTEGDEQRWHBk5zd_Wg0dt4/s1600/btrix-home.png" />
</a>
</li>
<li>
<a href="http://www.itviet360.com/search/label/Download">
<span class="aname">Download</span>
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzuGGBMBZTTeewPMfs1-RMvRR4svPzvvqyRnHN-6EDS1KsPDmyFQPBgBFRWXDgoiinLSGza6YyZpc81MOtFX1MWUdcrhgUX3hBlI0YW3-Gb_g2f73SgGB1FSM_sPo9C8PEdGg4KvCtRYU/s1600/btrix-download.png" />
</a>
</li>
<li>
<a href="http://www.itviet360.com/p/dich-vu-seo-web-gia-re-giai-phap-tot.html">
<span class="aname"> dvSEO</span>
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiexSKozijuFnBhWiYDxqXxIB_ZKugtLUSKW3W4nkABbMT4mW8FZTad-ctrRXSASulMM0udUzgnl4S7iP2n59dLU2-GYjWz3KR1Qc0kQm4XS-CgiuMAXb2eniuSsC7T2eQR3wuNI464S-I/s1600/btrix-mysql.png" />
</a>
</li>
<li>
<a href="http://www.itviet360.com/search/label/html-css">
<span class="aname"> Html</span>
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgd325g3hTkFuYFop5Uw47eo9jYJGYrKp6ZsrbCQJcHqefQYO3yvCJHSvyHwXAph8IDlo7soVKj-UHhhrSYddPGH_vosureey235IhZFRDYdJHXBgKUAI8847jX_SI57im9lYsEScrAVOo/s1600/Btrix-html.png" />
</a>
</li>
<li>
<a href="http://www.itviet360.com/p/phong-vu-seo.html">
<span class="aname">Contact</span>
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVKYXqR8tv2dXEElReQtk34QuEis6ljYzkIviZryKymFviundIsZbfeTsACplbadPv_lM8akOPvf1zjlHL_xS3-E8V5FDEwpIkQfkpb7Q-kLCNgFg998UeO0CWiCTPA8DK1ncEfnJntQk/s1600/btrix-contact.png" />
</a>
</li>
</div>
- Những giá trị mình bôi các bạn thay bằng của riêng mình nhé
2. Hướng dẫn trên Blogspot
- Vào bảng điều khiển blogger -> Mẫu (Template) -> chỉnh sửa HTML (Edit HTML)
- Tìm tới đoạn code ]]></b:skin> và dán Code CSS lên trước nó và lưu mẫu lại
- Vào bố cục (Layout) -> Thêm tiện ích (Add a Widget) -> HTML/Javascript
- Dán code HTML vào tiện ích vừa thêm và lưu lại
0 nhận xét:
Post a Comment