It’s been a while since we talked about Decrypting Thesis’ CSS. Figured that it’s high time we finished up our discussion on beautiful and customized navigation. The last navigation article talked about how to simply and easily customize your navigation to be above or below the header, as well as customizing it to be fully coloured.
This is the advanced class. Don’t be skippin’ ahead! Or, if you really want to, I guess we can let that happen. Don’t forget to bring me an apple next time. Or a shiny.
Checklist o’ Essentials
Before beginning:
- Open custom.css and custom-functions.php in your favourite text editor or HTML IDE (ie., Dreamweaver).
- Open your FTP client.
- Have a back-up copy of your custom.css and custom-functions.php saved on your hard drive. Y’know, in case you make a boo-boo. Hey, it happens.
Transparent Navigation
You’ve got the solid colour blues, baby. You don’t want to have a solid colour — you want to have a beautiful background image that will make you weep, just by looking at it. Okay, well, maybe not so powerful but still: there’s something about a well-styled navigation bar that gets a girl hot under the collar.
Or keyboard. Whichever works.
This is a pretty easy tutorial, as long as you’ve read the bit on Basic Navigation Styling.
.custom .menu { background:url(images/navbg.png) no-repeat; }
First, we’ve got to set the background image that we want for the navigation. Alternatively, if you have no background image you’d like to set (if you want the navigation over-top that stylin’ banner), set the background-property to none.
Looking good. One problem: all the links are still gray. Shoot. Good thing we can fix that.
Just like when we were changing the colours of the navigation menu in the last tutorial, we have to set each menu item separately.
.custom .menu .tab-1 a:link{ background:none; text-transform:lowercase; color:#063261; border:none;} .custom .menu .tab-1 a:visited { background:none; text-transform:lowercase; color:#063261; border:none; }
.custom .menu .tab-1 a:hover { background:none; text-transform:lowercase; color:#229a69; border:none;}
Each tab will need to be set in the same manner, with a set of three declarations: one for the normal state, one for the hover state, and one for the visited state. By setting the background-property to none, you’re declaring it as transparent.
Poof! Gray is gone!
This technique is excellent for specifying a navigation background or for placing your navigation over your banner. Please note that some of these techniques haven’t been tested in Internet Explorer. Remember: all good zombies cross-browser test. Except me. I’m a bad zombie. Baaaaad zombie.
More Navigation Tips ‘n Tricks in the next Tutorial
Check your inboxes and Readers for the next installment in the series: Decrypting Thesis CSS: Vertical Navigation. Warning: this’ll be a tricky one. Trickiest of ‘em all. In the meantime, you should follow me on Twitter.




{ 1 comment… read it below or add one }
Yes. Well. Internet Exploder.
My beautiful transparent menus for Toby Lane don’t work in Internet Explorer.
I am not happy about that.
Dave Doolin’s latest blog update: The Queen of GPO Speaks – violetminded Spills It
{ 4 trackbacks }