*** IT সম্পর্কে দক্ষ হতে চান ? ** তাহলে নিয়মিত Visit করুন .... IT Knowledge School **** টেকপ্রেমী : বদিউজ্জামান ( রুবেল )
*** IT সম্পর্কে দক্ষ হতে চান ? ** তাহলে নিয়মিত Visit করুন .... IT Knowledge School **** টেকপ্রেমী : বদিউজ্জামান ( রুবেল )
Blogger Tips and TricksLatest Tips And TricksBlogger Tricks

HOW TO MAKE A STICKY NAVIGATION BAR ON BLOGGER

1. CREATE YOUR BASIC NAVIGATION BAR

Before we can start any of the fancy editing, we need to make a simple navigation bar with all of your pages linked in. If you’re wanting to link to a specific type of post (lifestyle, recipe, fashion, etc.), make sure you’ve already added tags to those posts so they’ll show up when we link to them!
Go into the Layout tab of Blogger and create a new HTML/Javascript gadget in the header area. Paste the code below into it, and enter in your own information based on the hint in caps. If you want to link to a specific label, you would paste the URL of that label where it says LINK.
<!-- begin navigation menu -->
<div id="stickynavbar">
<ul>
<li><a title="home" href="LINK">Home</a></li>
<li><a title="TITLE" href="LINK">PAGE TITLE</a></li>
<li><a title="TITLE" href="LINK">PAGE TITLE</a></li>
<li><a title="TITLE" href="LINK">PAGE TITLE</a></li>
<li><a title="TITLE" href="LINK">PAGE TITLE</a></li>
</ul>
</div>
<!-- end navigation menu -->
view rawgistfile1.txt hosted with ❤ by GitHub

2. DECORATING TIME!

If you go to Template -> Customize -> Advanced, you can find the “Tabs” elements and edit some design aspects, like the background color and borders. This is where you can get creative! After you get the basic look done, go to Template -> Edit HTML and find “<b:skin>…</b:skin>” (CTRL + F is a coders best friend). Open that section up by clicking the “…” and scroll down to find the Tabs section. This code does all of the fine tuning for your navigation bar, from the style of the font to the color of the links. This is where the crazy stuff starts, so if you’re not skilled with coding, I found this FANTASTIC cheat sheet from xomisse that really breaks it down. Otherwise, go ahead and edit the code to your liking.
/* Spacing & Border of First Link in Navigation */
.tabs-inner .section:first-child ul {
margin-top: 0px;
border: 0 solid #eeeeee;
}
/* Background & Border of Navigation */
.tabs-inner .widget ul {
background: #999999;
border: 0px solid #eeeeee;
text-align: center !important;
}
/* Font, Colour & Border of Links */
.tabs-inner .widget li a {
font: normal normal 14px Arvo;
color: #333333;
border: 0px solid #ffffff;
}
/* Font & Colour of Rollover Links */
.tabs-inner .widget li.selected a, .tabs-inner .widget li a:hover {
color: #eeeeee;
background-color: #ffffff;
text-decoration: none;
}
/* Centre Navigation */
.tabs .widget li, .tabs .widget li{
display: inline;
float: none;}
view rawgistfile1.txt hosted with ❤ by GitHub

3. MAKING YOUR NAVIGATION BAR STICKY

First, I’d suggest removing Blogger’s navigation bar. I didn’t even realize you could do this, but it’s so easy! Just go to the Layout tab, click on NavBar, and turn it off. Simple as that.
Now go to Template -> Customize -> Advanced ->
Add CSS and add the code below. For those of you who didn’t know about this nifty little tool, anything you place in Add CSS gets put above . It’s perfect for anyone who looks at their blog’s HTML and freaks out a bit. It can be pretty overwhelming!
#stickynavbar { position: fixed; top: 0px; left: 0px; z-index: 999; width:100%;}
view rawgistfile1.txt hosted with ❤ by GitHub
One issue I noticed with my own blog was that my first link (Home) was partially off the page on the left side. To fix this, I just increased the “left” value until it fit.
You’ve now finished making your sticky navigation bar!

Badiuzzaman ( Rubel )