Blogging Techniques



1. How to make navigation bar sticky

On your CSS code find the word " #navigation" . And  add the following three marked lines. the numeric values may vary upon your choice.   #navigation{   position:fixed;   z-index: 10;   width:100%; height:40px; display:block; padding:0; margin:0 0 22px 0;      border-bottom:2px solid #222222; background:#ffffff; }


It can be anything like #navigation or #menubar  you can use the debug tool to find out which id or class refer to this block element. F12 can be used to debug and find out the css properties.
more technique here 

0 comments:

Post a Comment