Cara Membuat Fixed Menu Di Blogspot - Fixed menu adalah Floating Menu (Menu Melayang) atau sering juga disebut dengan "Fixed Menu" yang intinya adalah menu yang selalu berada di atas, walaupun blog di scroll sampai bawah. Tutorial ini adalah salah satu bagaimana cara membuat fixed menu di blogspot. Pada post sebelumnya saya juga pernah share cara membuat fixed menu, jika sobat belum membaca nya silahkan lihat disini : Lihat Fixed Menu
Untuk menu fixed kali ini, kira-kira penampilanya seperti screenshot ini sob :
Cara Membuat nya :
1. Buka Blogger, Klik Template, Edit HTML
2. Setalah muncul, Tekan tombol Ctrl + F dan cari kode ]]></b:skin> . Lalu letakan CSS berikut tepat Sebelum/Diatas Kode ]]></b:skin>
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287/*--YanuarMega Sticky Navigation Bar--*/
#MBL_wrapper .MBL_social_wrapper
{
margin-top: 15px;
}
#MBL_wrapper
{
width: 100%;
margin: auto;
background: #fff;
height: 50px;
border-top: 5px solid #2c2f32;
border-bottom: 1px solid #EBEBEC;
-webkit-box-shadow: 0 1px 0 #D2D2D3, 0 1px 3px rgba(0, 0, 0, .2);
-moz-box-shadow: 0 1px 0 #d2d2d3, 0 1px 3px rgba(0,0,0,.2);
-o-box-shadow: 0 1px 0 #d2d2d3, 0 1px 3px rgba(0,0,0,.2);
box-shadow: 0 1px 0 #D2D2D3, 0 1px 3px rgba(0, 0, 0, .2);
position: fixed;
z-index: 999;
}
#MBL_wrapper .topmenu.notice
{
float: left;
width: 500px;
margin-top: 15px;
color: #fff;
}
#top_menu a
{
color: #fff;
}
#top_menu
{
display: block;
float: left;
list-style: none;
margin-top: 12px;
}
#top_menu li
{
display: inline-block;
margin-right: 15px;
font-family: 'Patua One', 'Helvetica Neue', Helvetica, Arial,Verdana,sans-serif;
font-size: 14px;
text-transform: uppercase;
}
#top_menu li ul
{
display: none;
}
#boxed_wrapper
{
width: 980px;
margin: auto;
}
.MBL_standard_wrapper
{
width: 960px;
margin: auto;
}
.MBL_standard_wrapper.wide
{
width: 980px;
}
.MBL_standard_wrapper.header
{
margin-bottom: 0px;
}
.MBL_social_wrapper
{
width: auto;
float: right;
}
#menuforall .MBL_social_wrapper
{
margin-top: 15px;
}
.MBL_social_wrapper ul
{
list-style: none;
}
.MBL_social_wrapper ul li
{
float: right;
margin-left: 5px;
}
.MBL_social_wrapper ul li img
{
width: 24px;
}
#MBL_menu_wrapper
{
width: 930px;
height: 50px;
padding: 0;
margin:auto;
}
.mainmenu.notice
{
float: left;
width: 600px;
padding: 17px 0 10px 12px;
z-index: 999;
}
#MBL_menu_wrapper .nav ul, #MBL_menu_wrapper .nav
{
list-style: none;
display: block;
float: left;
margin: 0 23px 0 5px;
width: 700px;
}
#MBL_menu_wrapper .nav ul li, #MBL_menu_wrapper .nav li
{
display: block;
float :left;
margin: 0;
}
#MBL_menu_wrapper .nav ul li ul, #MBL_menu_wrapper div .nav li ul, .main_nav li ul
{
display: none;
list-style: none;
background: #000;
position:absolute;
padding: 0;
margin-top: 51px;
width: 200px;
height: auto;
z-index: 1000;
padding-top: 5px;
border-bottom: 5px solid #000;
border-left: 0;
}
#MBL_menu_wrapper .nav ul li ul li ul, #MBL_menu_wrapper div .nav li ul, .main_nav li ul li ul
{
margin-left: 200px;
margin-top: 5px;
}
#MBL_menu_wrapper .nav li ul li a, .nav li ul li a, #MBL_menu_wrapper .nav ul li.current_page_parent ul.sub-menu li.current_page_item a, .nav li.current-menu-parent ul.sub-menu li.current_page_item a
{
background: none;
}
.main_nav li ul li
{
width: 100%;
}
#MBL_menu_wrapper .nav li ul li a, #MBL_menu_wrapper .nav li.current-menu-item ul li a, #MBL_menu_wrapper .nav li ul li.current-menu-item a,#MBL_menu_wrapper .nav ul li ul li a, #MBL_menu_wrapper .nav ul li.current-menu-item ul li a, #MBL_menu_wrapper .nav ul li ul li.current-menu-item a
{
color: #fff;
display: block;
width: 188px;
font-weight: bold;
line-height: 1em;
padding: 10px 0 10px 12px;
background: none;
}
.main_nav ul, .main_nav
{
list-style: none;
margin: auto;
width: 600px;
height: 50px;
z-index: 999;
float: left;
border-left: 1px solid #EBEBEC;
}
.main_nav ul li, .main_nav li
{
display: block;
float :left;
margin: 0;
}
.main_nav ul li a, .main_nav li a
{
display: block;
float :left;
margin: 0 0 0 0;
padding: 18px 15px 14px 15px;
color: #2c2f32;
font-family: 'Patua One';
text-transform: uppercase;
font-size: 13px;
font-weight: 500;
border-right: 1px solid #EBEBEC;
}
.main_nav ul li ul li a, .main_nav li ul li a
{
width: 165px;
padding: 7px 19px 7px 16px;
border: 0;
font-size: 12px;
font-weight: normal;
color: #ccc;
font-family: 'Helvetica Neue', Helvetica, Arial,Verdana,sans-serif;
}
.main_nav ul li ul li:last-child a, .main_nav li ul li:last-child a
{
border-bottom: 0;
}
.main_nav ul li a:hover, .main_nav li a:hover, .main_nav ul li a.hover, .main_nav li a.hover, .main_nav ul li a:active, .main_nav li a:active, .main_nav li.current-menu-item a
{
color: #fff;
background: #1bc4de;
}
.main_nav li:last-child a:hover, .main_nav li:last-child a.hover
{
border-right: 0;
}
.main_nav li ul li a, .main_nav li.current-menu-item ul li a,#MBL_menu_wrapper .nav ul li ul li a, #MBL_menu_wrapper .nav ul li.current-menu-item ul li a, #MBL_menu_wrapper .nav ul li ul li.current-menu-item a,
{
display: block;
width: 170px;
line-height: 0.7em;
padding: 5px 0 5px 30px;
}
.main_nav li ul li a:hover, .main_nav li.current-menu-item ul li a:hover, .main_nav li ul li a.hover, .main_nav li.current-menu-item ul li a.hover, #MBL_menu_wrapper .nav ul li.current-menu-item ul li a:hover, #MBL_menu_wrapper .nav ul li ul li.current-menu-item a:hover, .main_nav li ul li:last-child a:hover, .main_nav li ul li:last-child a.hover
}
div
{
margin:0;
padding:0;
border:0;
font-weight:inherit;
font-style:inherit;
font-size:100%;
font-family:inherit;
vertical-align:baseline;
}
a
{
color: #2C2F32;
text-decoration: none;
-webkit-transition: color .2s linear, background .1s linear;
-moz-transition: color .2s linear, background .1s linear;
-ms-transition: color .2s linear, background .1s linear;
-o-transition: color .2s linear, background .1s linear;
transition: color .2s linear, background .1s linear;
}
/* Font Face ----------------------------------------------- */
@font-face {
font-family: 'Patua One';
font-style: normal;
font-weight: 400;
src: local('Patua One'), local('PatuaOne-Regular'), url(http://themes.googleusercontent.com/static/fonts/patuaone/v3/yAXhog6uK3bd3OwBILv_SLO3LdcAZYWl9Si6vvxL-qU.woff) format('woff');
}
ul{
margin: 0;
padding: 0;
list-style: none;
}
3. Setelah Itu cari kode <body> dan letakan kode di bawah ini Setelah/Dibawah kode <body>
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748<!-- Begin Navigation -->
<div id='MBL_wrapper'>
<div class='MBL_standard_wrapper'>
<div class='menu-main-menu-container'><ul class='main_nav' id='main_menu'><li class='menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-home menu-item-533' id='menu-item-533'>
<a href='#'>Home</a></li>
<li><a href='#'>Blog</a></li>
<li><a href='#'>About Us</a></li>
<li><a href='#'>Advertise Here</a></li>
<li><a href='#'>Contact Us</a></li>
<li><a href='htto://www.mybloggerlab.com'>MyBloggerLab</a></li>
</ul></div>
<div id='menu_border_wrapper'></div>
<div class='MBL_social_wrapper'>
<ul>
<li><a href='#' target='_blank'><img alt='' src='http:https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5JgMxVLWpC0umbKVzj2G6l4tWFtbIMoDUYcUWRSZKXPNZ9D_TUY5IzQ6k6VCVQTpJoCqw_rPWD5rObge5n_kdkNCwkBlROPT3oBd1waganIqf2wTdQRgbxmYu15xQy16fw1ggy2yqI5ZY/s1600/facebook.png'/></a></li>
<li><a href='#' target='_blank'><img alt='' src='http:https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixKMjs0sqSnWILgy6ev9A_c88VGljjd2KhqdVTKaO-zb09LB2bf3D1cq-dxsg0KRQA-QSZhvNzFuHMN7475-0XWJurB3Bbx-0TNCZhOMQgPvWp-fXET1w2bttBZiy5-w4Zzdab9mOBtPDn/s1600/twitter.png'/></a></li>
<li><a href='#' target='_blank' title='Flickr'><img alt='' src='http:https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguFSoP8npbXRiI9bjOXRvqlEyYzi1uQV3ZT_vMJIfNxnxMGhdYPcr31AkClR-CNagcknPiJautPmUtC4553_Cu_dIi_mVqnuMqtuUUt76Az12QLacHi8kcl0ObRnbr6AZtr5HK5Vje6Xwn/s1600/flickr.png'/></a></li>
<li><a href='#' target='_blank' title='Vimeo'><img alt='' src='http:https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicxqe-06PBhJsAP4aj_N-oPAjsHJmPFzT3Hku_rSbp1jXSE7QyPXtjHoWTp1eUNDZG1Abr7FPYBHMBN03u1hRdwTiH0_nas22mqlBqRNBTBMNeSC7rtugBNSWH2lqKQ0ICRHWFpRVG9L3F/s1600/vimeo.png'/></a></li>
<li><a href='#' target='_blank' title='Tumblr'><img alt='' src='http:https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKYVhCQS8yXuHgwwmG6iDm5gFTZDkPK-IzueJZiPPQjWJfb3VAgiC5CYsI_4Dt65FCqv7KT3TcBFuFBDGG820EkJXtlIIhwHy1vdr2tdxZiV_XwhtIrBAwRINXB7qyZkGCKcgQmd38jxf5/s1600/tumblr.png'/></a></li>
<li><a href='#' target='_blank' title='Google+'><img alt='' src='http:https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7X4pl3ejfj0kRwszPGV2iQzmL0dhT-0cQTBOSJskntko5F_m1_ZHVcGECnKvNGW_kYY_OTa3hObcXsrrxOj0VeQgR-xn837GQ_-9Wa_WyCwjX27T45lZaauOxkZgbYS-pXE2GtazE3i7Z/s1600/google.png'/></a></li>
<li><a href='#' target='_blank' title='Dribbble'><img alt='' src='http:https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNLIL-nhxeaw6HCqQS7FlXCW5LP_BuBu0SaolxHaBjwqmwTxTZ15optcyPSfk7BdBP1gplP_Od4l11UVddHcdYxmE5IaU3MCpgcHJ2wnh3KGy2fyxW3z6MSFwdhNOHNSd5235tYycWPnOW/s1600/dribbble.png'/></a></li>
<li><a href='#' target='_blank' title='Digg'><img alt='' src='http:https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguFeV4SBVlU6SenCgltMot7Hyg24nIC1A3dQoLrSbAJb4dk8VvB7F3DDKDDXxg1WH9OEFzd7GxLp2T93fXPFpe5KUxW9CHT3Zx_z2lc4wzSF8EI0c9V58t3HOcEXIajcS-ObULM1Hi5d5-/s1600/digg.png'/></a></li>
<li><a href='#' target='_blank' title='Linkedin'><img alt='' src='http:https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9lZ0e5-LUe-27_RDm5TacwqyZk-kYusjAORmPHkr0uiMgEkRbriIYUOPeTyD5j1_WuAtRIhW_paJ0jqYuuQIu_qALl9lTlAKsJdPuvj2sB64ynFr2twmVVlLufxN2YUbIuI8HQJoLKsrZ/s1600/linkedin.png'/></a></li>
<li><a href='#' target='_blank' title='Pinterest'><img alt='' src='http:https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfTCx0B4v998qPSV9gPQOaonRYLjh407OyR-VqZ62DOsBuxiDRKwz6bNVDM79squSxIlqj0lDVaEGHEYYgj6md9DUcwYvAseAHcbyEFxIpGSqGVUD53ilq9p-AajQ1_xHqYXZTxEgeSoCS/s1600/pinterest.png'/></a></li>
<li><a href='#' target='_blank'><img alt='' src='http:https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUCZnCNNY2EaVz1cryX8YHXpDMYw6jF81pBOTrlcxXPiDl4h9einC4YgOJm2QZUpvIksQLsWnKo050GJNwVIg7ENDeB6W-RN8FD5Nvvl7vwr4gUMsOLw4mtzB7BHScjJxCJZJnedGpujVb/s1600/rss.png'/></a></li>
</ul>
</div>
</div>
</div>
<!-- End Navigation -->
Okey, kalau sudah tinggal di save dan lihat hasilnya.
Cukup sekian, terima kasih telah membaca artikel Cara Membuat Fixed Menu Di Blogspot.
Semoga Bermanfaat.
Source code : www.mybloggerlab.com
Tidak ada komentar:
Posting Komentar