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/AVvXsEhJJzU_5oAM-ZnH6JKdjAPx4hxUWO9DejmpowThT9mWjWOyNJEAKSVZzb2la_URk1Qu2JfBDGSFQ1RQczpj_AGdVjbaPwgK8Wcr4v9wpvJMd9nLGUP9oIYKjCA0IvZ1pIUfPVkIElqZspQ/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/AVvXsEiusgNlBmm0_Bt2HTwterkUbglkL63iGOtQTZwIH3SEXwLIVsedriKbc8l9Q7ttA1gUOu31Ci8SF1-xg2291OQJdXBKVzeL5505ym4mnIfSbFCmP0P3NxS52Q34MXlMwq7uqQeqlO-yLGQ/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/AVvXsEjGB72fpfb1y_vnG-s1-J_zKGuX3pEDZkweNTo_m4GGMPVVYAlv3_MrthmnlhZejQbe6wFqZHj4sBJA_tdIf2qwWPjFv7OxPZjZKPnKuXU0QS-IeLcHANt940O4Z5ZtyC2cmD5vEVGQ02A/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/AVvXsEiccUfgudb-Swh89tj47SraBYgtJ7QuHl0RUUD-7zk4fYDjJBmN_ocW4LJSBbC0VoShEBOdTtDo4X1SygfcIwSoUbpiz0LvPesv0IiJfcgAzJ9ip9dR9aoZFeczjFEluGB3j18JJM4oFyM/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/AVvXsEhXzeSj94BWdjQvSSBmR6RzFK8d-QQvNHrCFI70KmD84yl62vnmxgDZxTKY_udSjIWNwu25Y_OCl8C5szrv7KAAgJX8GfU5l0m18RA2sm7u2y9w5-NULr9iLdkx12I0g8ONF92UViQwNoM/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 Chuyên mục: html-css, Source code, Thu thuat blogspot, thu-thuat-blogger
0 nhận xét:
Đăng một bình luận