Blogging Crazed a new mag responsive and seo friendly blogger template

Wednesday, 30 April 2014

How To Make Top Navigation Bar Float.

No comments :
Over the past few days I have run across numerous websites that incorporated a floating navigation bar. Basically, as you scroll from top to bottom on the website, the navigation bar/menu will always be visible across the top. Notice the navigation bar on my site “stays put” as you scroll. I was shocked to learn how fast this could be implemented via CSS. Here are the steps;
  1. Decide what you want to float. In my case I wanted the entire #header div to float along with the menu to include the black background.
  2. Add the following to the CSS of the element: position:fixed.
  3. Adjust spacing and margins accordingly to the elements around the “div”.
Post below your examples after using this tutorial 

No comments :

Post a Comment