
How to Create Floating Header :
1. Log in to blogger.
2. Select Your Preferred Blog and Go to template and backup it first.
3. Click on ‘Edit HTML’.
4. Now search for #header , .header or something like this that defines the header portion of the template.
3. Click on ‘Edit HTML’.
4. Now search for #header , .header or something like this that defines the header portion of the template.
You can do the search by pressing Ctrl+F.
5. Add below CSS to the header section or below the header tags.
position:fixed; z-index:200; background-color: #fff;
6. This part of the code makes the header portion to stick at the top of the blog and any other content.
Now we have to make some changes in the #main portion to prevent the posts from being positioned underneath the header.
7.Search for #main or the portion that defines the main portion of the blog.
8. Add
8. Add
margin-top:200px;
to the #main portion of the style sheet.
Sometimes you have to make some modifications in the style sheet according to your needs.
before and after pic please
ReplyDeletethanks
ReplyDeleteThanks bro. It really works with my site.
ReplyDelete