How To Create a Sticky Floating Navigation Menu inwards Blogger

Are you lot tired of your laborious Navigation bar together with would wishing to refurbish it amongst something that could amuse your visitor? Navigation bar is deliberated equally the inwardness chemical constituent of a website because it represents the consummate outlook of a website. Navigation bar has most prominent data most that helps users to navigate throughout the website. As nosotros all are good aware that Navigation bar appears at the transcend of a website, therefore users receive got to scroll dorsum to transcend inwards social club to navigate to dissimilar pages. Furthermore, probabilities are fleck high that users mightiness acquire frustrated together with straight off move out your website. For that reason, it is crucial to receive got a “Sticky” Navigation bar that floating along whenever someone Scroll upward or downwards the page. In This Article, nosotros volition Learn How To Create a Floating “Sticky” Navigation bar inwards Blogger. 


Why To Add Sticky Navigation Bar inwards Your Site?

It is extremely frustrating when nosotros receive got to scroll dorsum to transcend inwards social club to navigate to other pages. Sometimes, a someone gets therefore annoyed that without whatever farther delay, he leaves the website. However, yesteryear adding a scrolling Navigation bar it would let users to accept a long breath together with read your content without facing whatever occupation whatsoever. Furthermore, it is extremely light-weight therefore it would non touching on your site speed.

How together with Where the Sticky Navigation Bar Would Appear?

There is no rocket scientific discipline behind the appearing of this widget because it would appear at the transcend of your website only higher upward your Header. To clear your concept, nosotros receive got attached a screenshot below. Look at the Following screenshot.

How To Add Sticky Navigation Bar inwards Blogger?

In social club to implement this tutorial, in that location is no involve to larn anything. Just follow the next instructions together with it would run quite impressively. 


Go to Blogger.com >> Template >> Edit HTML >> Proceed.

In the template Search for StyleSheet ]]></b:skin> Tag together with only higher upward it glue the next CSS Coding. To Change the color of Hover termination therefore from the next coding Replace #1bc4de amongst your personalize Color Code. 


/*–MyBloggerLab Sticky Navigation Bar–*/
#MBL_wrapper .MBL_social_wrapper
{
margin-top: 15px;
}

#MBL_wrapper
{
width: 100%;
margin: auto;
background: #fff;
height: 50px;
border-top: 5px company #2c2f32;
border-bottom: 1px company #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 company #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 company #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 company #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;
}


Again inwards the template search for <body> together with only below it Paste the next HTML Coding. However, if anyone is unable to Find <body> tag then, hold off for <body> tag together with below it Paste the Following Coding. Don’t forget to supplant all Hashes (#) according to your wishing needs.

<!– 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://4.bp.blogspot.com/-xodteBnLv_o/UMt2MhUxNTI/AAAAAAAAJkI/OaeijLxpGbM/s1600/facebook.png’/></a></li>

<li><a href=’#’ target=’_blank’><img alt=” src=’http://3.bp.blogspot.com/-y2QGcmB-W8c/UMt2N7nGwZI/AAAAAAAAJkU/cgiX_vZKuJE/s1600/twitter.png’/></a></li>

<li><a href=’#’ target=’_blank’ title=’Flickr’><img alt=” src=’http://1.bp.blogspot.com/-7QcpMgVNe7Q/UMt2Nd0-caI/AAAAAAAAJkM/COoeVsc8u-I/s1600/flickr.png’/></a></li>

<li><a href=’#’ target=’_blank’ title=’Vimeo’><img alt=” src=’http://3.bp.blogspot.com/-9txEaiKK4tQ/UMt2fH9HZNI/AAAAAAAAJks/OyuUs6Iey70/s1600/vimeo.png’/></a></li>

<li><a href=’#’ target=’_blank’ title=’Tumblr’><img alt=” src=’http://2.bp.blogspot.com/-T-gXdBaWDP8/UMt2eKpPnKI/AAAAAAAAJkk/DGb0SWy084Q/s1600/tumblr.png’/></a></li>

<li><a href=’#’ target=’_blank’ title=’Google+’><img alt=” src=’http://1.bp.blogspot.com/-35AQ0H_SNHQ/UMt2dVSPtmI/AAAAAAAAJkg/cV1dPIIQoN4/s1600/google.png’/></a></li>

<li><a href=’#’ target=’_blank’ title=’Dribbble’><img alt=” src=’http://3.bp.blogspot.com/-hP7Q0_xIyMs/UMt2wjfkxjI/AAAAAAAAJk8/cdn70uuqA00/s1600/dribbble.png’/></a></li>

<li><a href=’#’ target=’_blank’ title=’Digg’><img alt=” src=’http://3.bp.blogspot.com/-GvBd6a5GqxQ/UMt2wFEbISI/AAAAAAAAJk4/ZM5I29YzOHE/s1600/digg.png’/></a></li>

<li><a href=’#’ target=’_blank’ title=’Linkedin’><img alt=” src=’http://2.bp.blogspot.com/-qu2EsReNPng/UMt3aIQ6sSI/AAAAAAAAJlY/RcCW3BI06o4/s1600/linkedin.png’/></a></li>

<li><a href=’#’ target=’_blank’ title=’Pinterest’><img alt=” src=’http://3.bp.blogspot.com/-nZJuxAiV91c/UMt2xc-ydNI/AAAAAAAAJlE/y_2cYBzI8-M/s1600/pinterest.png’/></a></li>

<li><a href=’#’ target=’_blank’><img alt=” src=’http://2.bp.blogspot.com/-kjb4ky538Ss/UMt2yD_43JI/AAAAAAAAJlM/TsonJ3OT0r4/s1600/rss.png’/></a></li>

</ul>
</div>
</div>
</div>
<!– End Navigation –>


All Done: After customizing, relieve your template yesteryear pressing “Save Template” button. If anyone has whatever inquiry or difficulty then, experience gratuitous to move out a comment below nosotros would dear to listen you. 

From The Editor’s Desk:

Hope that Floating Navigation Bar would amuse your visitors. After adding this gadget, this floating Bar mightiness overlap your Header department Area. To resolve this only add together margin-top:50px; inwards the CSS of your Header-wrapper together with it would terminate overlapping your header. What are your thoughts most this gadget? Suggestions would human activeness equally a slice of Gold. Take aid till then, Peace, Blessings together with Happy Floating.


Sumber http://www.mybloggerlab.com