Navbar peekaboo: Hide and make it appear on hover
This tutorial will show you how to make Blogger navbar invisible and have it reappear when you mouse over the top of your blog.
The end result of this hack is slightly is different from other navbar peek-a-boo hacks available on the net. Most hacks will:
- Hide the navbar, but leave it’s footprint visible in normal view, or
- Look good during normal view, but push the rest of you blog page downward when hovered.
This hack won’t do either of that. The navbar will simply appear on a different layer, floating on top of your blog header. Visit my widget showcase blog for the demo. Here are the screenshots of how your navbar area will look like once you’ve applied the hack:
Normal view
Hover view
Note: This hack should work in Firefox, Chrome and Opera. It won’t work on Internet Explorer.
- Go to Dashboard > Design > Edit HTML.
- If you had previously removed the navbar, then you need to undo that first before proceeding. Refer to How to remove or restore Blogger navbar.
- Look for
]]></b:skin>
line in your HTML code and add the following CSS code snippet right before it:
#navbar {opacity:0;filter:alpha(opacity=0);position:relative;margin-bottom:-30px;z-index:10;} #navbar:hover {opacity:0.7;filter:alpha(opacity=70);}
You can change the hovered navbar transparency by decreasing the value of opacity property in line 2. The value of 0 makes it completely transparent and 1(100) makes it completely opaque.
(For Designer template, you can also add the snippet without leaving Template Designer)
Enjoy!
15 comments to "Navbar peekaboo: Hide and make it appear on hover"
great, it worked for me.
Is it possible to add gadgets on the right & left side of the blogger window?
@Dar-us-Salam Publications
No, it's not possible. To add widgets, you need to widen the window and add sidebars.
It worked great! Thank you!
I'm gonna try this on my blog. I think this is a neat hack since it will give more space to the blog.
Thanks!
Thank you very much...it worked
@RasaMewah.com
You're welcome, and do enjoy other tutorials too :)
Thanks for the tutorial, it works!!
this is reallly good....thnx!
it works.tqvm ^^
yay! it works. thanks
Works great in Safari too. Thanks, Dickie
thanks buddy
Thanks for the code. We use it on our blogspot site now.
THANKS!
So easy to do with the CSS option in Template Designer. Gave my header a clean, streamlined look. I use Firefox, so not working in IE was not an issue for me.
Post a Comment
We love to hear from you! Leave us a comment.
To ensure proper display, HTML/XML/Javascript need to be escaped first using this escape tool.