1. Login ke akun blogger.
2. Masuk menu Template lalu pilih Edit HTML.
3. Copy kode berikut ini lalu paste di atas kode
]]></b:skin>
kemudian Simpan Template.div.redmenu{ background:#9A0000 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMJoDxazUKpvtRCcEl-fwjoVySGjQpBrjKZ8g4Hvu_dzt-n5N0iu9lcDEwqpryS1g8R-zCPKWv1AhGYz1fKqecSljk5bNGeryiaatvJ26w0Ey2iwG2ahDliyf66bT00OiMxSJGgBlNEz8/h120/bg1.gif); border:1px solid #000; font-size:0; }4. Lalu langkah selanjutnya untuk menampilkan Menu Navigasi Horisontal di Blog caranya copy kode berikut ini, kemudian klik Tata Letak >> Tambah Widget >> HTML/Javascript lalu paste kode tersebut didalamnya.
div.redmenu a{ display: inline-block; padding: 0 20px; background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlKQpd2JGHIBJwtPrzdlFrKvQ6M4dJUWqK77mfve_gOLQe9Pe4i8adSRSp2drY2wodBt37DFbptAR5voUT_Xk1trDIq__Mftav0I1iju9hlBLl_qZRc3V8ZuWcVoO2fs0nUIVZn9ac6rE/h108/bg.gif); color:#fff; text-decoration:none; font: bold 12px Arial; line-height: 32px; }
div.redmenu a:hover, div.redmenu a.current{ background-position:0 -60px; }
div.redmenu a.end{ width:2px; padding-left:0;padding-right:0; }
<div class='redmenu'>Keterangan:
<a expr:href='data:blog.homepageUrl' class='current'>Home</a>
<a href='http://mas-andes.blogspot.com'>Menu 1</a>
<a href='http://mas-andes.blogspot.com'>Menu 2</a>
<a href='http://mas-andes.blogspot.com'>Menu 3</a>
<a href='http://mas-andes.blogspot.com'>Menu 4</a>
<a href='http://mas-andes.blogspot.com'>Menu 5</a>
<a class="end"> </a>
</div>
Ganti http://mas-andes.blogspot.com dengan URL label blog anda.
5. Langkah terakhir klik Simpan, maka selesai dan seperti ini nanti hasilnya dari Cara Membuat Menu Navigasi Horisontal Blog.
Atau apabila ingin menggunakan Menu Navigasi Horisontal Blog dengan warna lain seperti yang ada dibawah, maka langkah-langkah penerapannya seperti pada yang sudah tertera di atas. Berikut ini live demo beserta source kode menu navigasi horisontal blog.
CSS*
#bluemenu { border: solid 1px #39F; background:#64DAFC url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwAgWDnjrupRFH_Ye9wlKMS-BGsGD4yCiiAu4pLvIPCzYP7vTiAaCPRB3FJ3Q7-agotjeM1a08Nu_GE4D2LM6QJdu_Kf1dVUa_hYsnJPfEv47y8PVLg15FY0WVbjrfHVkPie5ViMvp5sI/h120/bluebg.gif) repeat-x; }HTML*
#menublues{ font-size:0; }
#menublues ul, #menublues li{ display: inline; list-style-type: none;padding: 0;margin: 0;border:0;background-image:none; }
#menublues a{ text-align: center; display: inline-block; font: normal 12px Arial; background: url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhz11rwKPB4n0r434OsIsLzB9ye6vmoAUPd92JuMnWjjtiFwb3SitCsbN1E04rlRZQuGwrvtyYa_4F-bpeh0pzuFiKMGKozhZ4MFWxo_kbVxGceAOJydODZ6KoLqHtQNnVVq9-1QVb4TIU/h108/blue.gif') no-repeat left top; padding: 10px 20px; color: #fff; text-decoration: none; }
#menublues a:hover, #menublues a.current{ background-position: 0% -60px; color: #fff; }
#menublues a.end{ width:2px; padding-left:0;padding-right:0; }
<div id='bluemenu'>
<div id='menublues'>
<ul>
<li><a expr:href='data:blog.homepageUrl' class='current'>Home</a></li>
<li><a href='http://mas-andes.blogspot.com'>Menu 1</a></li>
<li><a href='http://mas-andes.blogspot.com'>Menu 2</a></li>
<li><a href='http://mas-andes.blogspot.com'>Menu 3</a></li>
<li><a href='http://mas-andes.blogspot.com'>Menu 4</a></li>
<li><a href='http://mas-andes.blogspot.com'>Menu 5</a></li>
<li><a class='end'> </a></li>
</ul>
</div>
</div>
CSS*
HTML*
#greenmenu { border: solid 1px #52e052; background:#64DAFC url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTYxkJ-UpGQdp-eiTdhaMuXuVNXKFc5YBVTgSjePCYLOt7KwzeEZSNGdRxa8qFqZ55R1d-jHiCjl7LoeKSbpkBut057A0cD_kJZ3-GArhJshnwGtiSuwPaTLF56mEbHTaeNXjVlKM4dgk/h120/greenbg.gif) repeat-x; }
#menugreen{ font-size:0; }
#menugreen ul, #menugreen li{ display: inline; list-style-type: none;padding: 0;margin: 0;border:0;background-image:none; }
#menugreen a{ text-align: center; display: inline-block; font: normal 12px Arial; background: url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUoFz80RhPnhLsAxKTSwmUJ0AFw0brfCrTlSlEK7XUCRAjGJgseUFLCj-L3uCAW87YSrl08CEytG0cfJWeUJs9_MRQCdQd4Hhxcn9F2zcnIN4JNKo-MyTqGjCRNY7P1Jum8pcJ981UDzk/h108/green.gif') no-repeat left top; padding: 10px 20px; color: #fff; text-decoration: none; }
#menugreen a:hover, #menugreen a.current{ background-position: 0% -60px; color: #fff; }
#menugreen a.end{ width:2px; padding-left:0;padding-right:0; }
<div id='greenmenu'>
<div id='menugreen'>
<ul>
<li><a expr:href='data:blog.homepageUrl' class='current'>Home</a></li>
<li><a href='http://mas-andes.blogspot.com'>Menu 1</a></li>
<li><a href='http://mas-andes.blogspot.com'>Menu 2</a></li>
<li><a href='http://mas-andes.blogspot.com'>Menu 3</a></li>
<li><a href='http://mas-andes.blogspot.com'>Menu 4</a></li>
<li><a href='http://mas-andes.blogspot.com'>Menu 5</a></li>
<li><a class='end'> </a></li>
</ul>
</div>
</div>
0 Response to "Cara Membuat Menu Navigasi Horisontal Blog"