Asalamualaikum Wr. Wb
Met pagi sobat blogger, Kali ini ane akan sharing tentang cara membuat menu drop down di atas atau di bawah header yang sebelumnya sahabat bloggger sudah merequestnya di facebook
Menu drop down ini bisa sobat pasang di atas maupun di bawah title blog, dengan memasang menu seperti ini tampilan blog kita pastinya akan semakin tampak keren dan tentunya dapat memudahkan pengunjung untuk mencari apa yang dibutuhkan dari blog sobat.
Ok, langsung saja sobat inilah step by stepnya
1. login dulu di akun blog sobat
2. pilih Template, klik Edit HTML
3. Sobat cari kode ]]></b:skin> (untuk mempermudah pencarian sobat gunakan Ctrl+f) dan letakkan kode berikut tepat di atas kode ]]></b:skin>
/* Menu Horizontal Dropdown ----------------------------------------------- */ #menuwrapperpic{background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwzw388KEF5MgcpoVzFipD_UGZcfO3FqWJjzd_dQPxGHYvrdyj73GQrQWPEFXtn6WSnHo6J-DLmprhLgDMgzwWpPFByavg4UtYkyU8J3JlpQwqI0XtMAsaQmesM2aDWr8aPamNJyqpasU/s1600/menubar.png) repeat-x;width:960px;margin:0 auto;padding:0 auto} #menuwrapper{width:960px;height:35px;margin:0 auto} .menusearch{width:300px;float:right;margin:0 auto;padding:0 auto} .clearit{clear:both;height:0;line-height:0.0;font-size:0} #menubar{width:100%} #menubar,#menubar ul{list-style:none;font-family:Arial, serif;margin:0;padding:0} #menubar a{display:block;text-decoration:none;font-size:12px;font-weight:700;text-transform:uppercase;color:#CECECF;border-right:1px solid #191919;padding:12px 10px 8px} #menubar a.trigger{background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicA2IdSKc4ZMTgrk555b-eujXgbhkbI9FtQ1iFY3S97VAC0sBwFwvvoE6vC-1yiXrmo6n4Cow1oPgH2psoGw7mjLnh4tIfJwG7qA0ac1lV0sZr-wkWtXIjwSiFirN-ewRgllYTRwOypoQ/s1600/arrow_white.gif);background-repeat:no-repeat;background-position:right center;padding:12px 24px 8px 10px} #menubar li{float:left;position:static;width:auto} #menubar li ul,#menubar ul li{width:170px} #menubar ul li a{text-align:left;color:#fff;font-size:12px;font-weight:400;text-transform:none;font-family:Arial;border:none;padding:5px 10px} #menubar li ul{z-index:100;position:absolute;display:none;background:#222;padding-bottom:5px;-moz-box-shadow:0 2px 2px rgba(0,0,0,0.6);-webkit-box-shadow:0 2px 2px rgba(0,0,0,0.6)} #menubar li:hover a,#menubar a:active,#menubar a:focus,#menubar li.hvr a{background-color:#222;color:#E98C0A} #menubar li:hover ul,#menubar li.hvr ul{display:block} #menubar li:hover ul a,#menubar li.hvr ul a{color:#edfdfd;background-color:transparent;text-decoration:none} #menubar li ul li.hr{border-bottom:1px solid #444;border-top:1px solid #000;display:block;font-size:1px;height:0;line-height:0;margin:4px 0} #menubar ul a:hover{background-color:#555!important;color:#fff!important;text-decoration:none}
Met pagi sobat blogger, Kali ini ane akan sharing tentang cara membuat menu drop down di atas atau di bawah header yang sebelumnya sahabat bloggger sudah merequestnya di facebook
Menu drop down ini bisa sobat pasang di atas maupun di bawah title blog, dengan memasang menu seperti ini tampilan blog kita pastinya akan semakin tampak keren dan tentunya dapat memudahkan pengunjung untuk mencari apa yang dibutuhkan dari blog sobat.
Ok, langsung saja sobat inilah step by stepnya
1. login dulu di akun blog sobat
2. pilih Template, klik Edit HTML
3. Sobat cari kode ]]></b:skin> (untuk mempermudah pencarian sobat gunakan Ctrl+f) dan letakkan kode berikut tepat di atas kode ]]></b:skin>
/* Menu Horizontal Dropdown ----------------------------------------------- */ #menuwrapperpic{background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwzw388KEF5MgcpoVzFipD_UGZcfO3FqWJjzd_dQPxGHYvrdyj73GQrQWPEFXtn6WSnHo6J-DLmprhLgDMgzwWpPFByavg4UtYkyU8J3JlpQwqI0XtMAsaQmesM2aDWr8aPamNJyqpasU/s1600/menubar.png) repeat-x;width:960px;margin:0 auto;padding:0 auto} #menuwrapper{width:960px;height:35px;margin:0 auto} .menusearch{width:300px;float:right;margin:0 auto;padding:0 auto} .clearit{clear:both;height:0;line-height:0.0;font-size:0} #menubar{width:100%} #menubar,#menubar ul{list-style:none;font-family:Arial, serif;margin:0;padding:0} #menubar a{display:block;text-decoration:none;font-size:12px;font-weight:700;text-transform:uppercase;color:#CECECF;border-right:1px solid #191919;padding:12px 10px 8px} #menubar a.trigger{background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicA2IdSKc4ZMTgrk555b-eujXgbhkbI9FtQ1iFY3S97VAC0sBwFwvvoE6vC-1yiXrmo6n4Cow1oPgH2psoGw7mjLnh4tIfJwG7qA0ac1lV0sZr-wkWtXIjwSiFirN-ewRgllYTRwOypoQ/s1600/arrow_white.gif);background-repeat:no-repeat;background-position:right center;padding:12px 24px 8px 10px} #menubar li{float:left;position:static;width:auto} #menubar li ul,#menubar ul li{width:170px} #menubar ul li a{text-align:left;color:#fff;font-size:12px;font-weight:400;text-transform:none;font-family:Arial;border:none;padding:5px 10px} #menubar li ul{z-index:100;position:absolute;display:none;background:#222;padding-bottom:5px;-moz-box-shadow:0 2px 2px rgba(0,0,0,0.6);-webkit-box-shadow:0 2px 2px rgba(0,0,0,0.6)} #menubar li:hover a,#menubar a:active,#menubar a:focus,#menubar li.hvr a{background-color:#222;color:#E98C0A} #menubar li:hover ul,#menubar li.hvr ul{display:block} #menubar li:hover ul a,#menubar li.hvr ul a{color:#edfdfd;background-color:transparent;text-decoration:none} #menubar li ul li.hr{border-bottom:1px solid #444;border-top:1px solid #000;display:block;font-size:1px;height:0;line-height:0;margin:4px 0} #menubar ul a:hover{background-color:#555!important;color:#fff!important;text-decoration:none}
Kalau sudah kemudian sobat cari kode berikut:
<head> : untuk menempatkan menu di atas title blog
</head> : untuk menempatkan menu di bawah title blog
Copy kode berikut ini dan letakkan tepat di atas kode <head> atau di bawah </head>
klik show untuk melihat kode
<div id='menuwrapper'>
<ul id='menubar'>
<li><a href='/'><img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwUzfYNliBdUpDgwf_X3SozyOufe2EsvdBQrhrOnmRUISJanl0edxJMecCbX2cxVa07zdVE0xb1OMHM6OnYBvnpSSS9nf1Xn90tY9C0iXBnKL04s-pndzkH4Hq05vHAD5nqdqv0WVBmbE/s1600/home_white.png' style='padding:0px;'/> Home</a></li>
<li><a href='https://plus.google.com/101505870560853499192' target='new'>Tentang Saya</a></li>
<li><a class='trigger'>Contact Me</a>
<ul>
<li><a href='https://plus.google.com/101505870560853499192' target='new'>G+</a></li>
<li class='hr'/>
<li><a href='http://twitter.com/IanzCreative' target='new'>IanzCreative on Twitter</a></li>
<li class='hr'/>
<li><a href='http://www.facebook.com/Atsutsane' target='new'>IanzCreative on Facebook</a></li>
<li class='hr'/>
</ul>
</li>
<li><a href='http://ianzcreative.blogspot.com' target='new'>IanzCreative</a></li>
<li><a class='trigger'>Tutorial</a>
<ul>
<li><a href='http://ianzcreative.blogspot.com/search/label/Hacking?max-results=8'>Hacking</a></li>
<li class='hr'/>
<li><a href='http://ianzcreative.blogspot.com/search/label/Blogging%20dan%20SEO?max-results=8'>Blogging And SEO</a></li>
<li class='hr'/>
<li><a href='http://ianzcreative.blogspot.com/search/label/Komputer?max-results=8'>Komputer</a></li>
<li class='hr'/>
</ul>
</li>
<li><a class='trigger'>Download</a>
<ul>
<li><a href='http://ianzcreative.blogspot.com/search/label/CD%2FDVD?max-results=8'>CD/DVD</a></li>
<li class='hr'/>
<li><a href='http://ianzcreative.blogspot.com/search/label/Portable%20Software?max-results=8'>Portable Software</a></li>
<li class='hr'/>
<li><a href='http://ianzcreative.blogspot.com/search/label/Antivirus%20and%20Security?max-results=8'>Antivirus</a></li>
<li class='hr'/>
<li><a href='http://ianzcreative.blogspot.com/search/label/System%20Tweaking'>System Tweaking</a></li>
<li class='hr'/>
<li><a href='http://ianzcreative.blogspot.com/search/label/Android'>Android</a></li>
<li class='hr'/>
<li><a href='http://ianzcreative.blogspot.com/search/label/System Tweaking'>System Tweaking</a></li>
<li class='hr'/>
<li><a href='http://ianzcreative.blogspot.com/search/label/Software'>Lain-Lain</a></li>
</ul>
</li>
</ul> <div class='menusearch'>
<div style='float:right;padding:8px 8px 0 0;'>
<form action='http://ianzcreative.blogspot.com/search' method='get' target=''>
<input name='sitesearch' style='display:none;' value='http://ianzcreative.blogspot.com'/>
<input id='search-box' name='q' onblur='if(this.value=='')this.value=this.defaultValue;' onfocus='if(this.value==this.defaultValue)this.value='';' style='width:170px;border:none;padding:4px 10px; font:italic 12px Georgia;color:#666; background:url(http://ian-file.googlecode.com/files/searchbg.gif) no-repeat;' type='text' value='Cari apa sobat'/><input align='top' id='search-btn' src='http://ian-file.googlecode.com/files/searchbg2.gif' type='image' value='Search'/>
</form></div></div><br class='clearit'/></div><div style='clear:both;'/></div>
<ul id='menubar'>
<li><a href='/'><img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwUzfYNliBdUpDgwf_X3SozyOufe2EsvdBQrhrOnmRUISJanl0edxJMecCbX2cxVa07zdVE0xb1OMHM6OnYBvnpSSS9nf1Xn90tY9C0iXBnKL04s-pndzkH4Hq05vHAD5nqdqv0WVBmbE/s1600/home_white.png' style='padding:0px;'/> Home</a></li>
<li><a href='https://plus.google.com/101505870560853499192' target='new'>Tentang Saya</a></li>
<li><a class='trigger'>Contact Me</a>
<ul>
<li><a href='https://plus.google.com/101505870560853499192' target='new'>G+</a></li>
<li class='hr'/>
<li><a href='http://twitter.com/IanzCreative' target='new'>IanzCreative on Twitter</a></li>
<li class='hr'/>
<li><a href='http://www.facebook.com/Atsutsane' target='new'>IanzCreative on Facebook</a></li>
<li class='hr'/>
</ul>
</li>
<li><a href='http://ianzcreative.blogspot.com' target='new'>IanzCreative</a></li>
<li><a class='trigger'>Tutorial</a>
<ul>
<li><a href='http://ianzcreative.blogspot.com/search/label/Hacking?max-results=8'>Hacking</a></li>
<li class='hr'/>
<li><a href='http://ianzcreative.blogspot.com/search/label/Blogging%20dan%20SEO?max-results=8'>Blogging And SEO</a></li>
<li class='hr'/>
<li><a href='http://ianzcreative.blogspot.com/search/label/Komputer?max-results=8'>Komputer</a></li>
<li class='hr'/>
</ul>
</li>
<li><a class='trigger'>Download</a>
<ul>
<li><a href='http://ianzcreative.blogspot.com/search/label/CD%2FDVD?max-results=8'>CD/DVD</a></li>
<li class='hr'/>
<li><a href='http://ianzcreative.blogspot.com/search/label/Portable%20Software?max-results=8'>Portable Software</a></li>
<li class='hr'/>
<li><a href='http://ianzcreative.blogspot.com/search/label/Antivirus%20and%20Security?max-results=8'>Antivirus</a></li>
<li class='hr'/>
<li><a href='http://ianzcreative.blogspot.com/search/label/System%20Tweaking'>System Tweaking</a></li>
<li class='hr'/>
<li><a href='http://ianzcreative.blogspot.com/search/label/Android'>Android</a></li>
<li class='hr'/>
<li><a href='http://ianzcreative.blogspot.com/search/label/System Tweaking'>System Tweaking</a></li>
<li class='hr'/>
<li><a href='http://ianzcreative.blogspot.com/search/label/Software'>Lain-Lain</a></li>
</ul>
</li>
</ul> <div class='menusearch'>
<div style='float:right;padding:8px 8px 0 0;'>
<form action='http://ianzcreative.blogspot.com/search' method='get' target=''>
<input name='sitesearch' style='display:none;' value='http://ianzcreative.blogspot.com'/>
<input id='search-box' name='q' onblur='if(this.value=='')this.value=this.defaultValue;' onfocus='if(this.value==this.defaultValue)this.value='';' style='width:170px;border:none;padding:4px 10px; font:italic 12px Georgia;color:#666; background:url(http://ian-file.googlecode.com/files/searchbg.gif) no-repeat;' type='text' value='Cari apa sobat'/><input align='top' id='search-btn' src='http://ian-file.googlecode.com/files/searchbg2.gif' type='image' value='Search'/>
</form></div></div><br class='clearit'/></div><div style='clear:both;'/></div>
Kode berwarna merah adalah URL sobat, silakan sobat ganti dengan URL pada blog sobat
Kode berwarna kuning adalah menu dan submenu yang tampil pada menu dropdown, Silakan sobat ganti sesuka hati sobat
Semoga bermanfaat........Wassalam
2 Comments
keren...
nice share...
Desainew
hehe thanks sob.. :)