skip to content

Hidden Tab menu

1st May 2006


Information

A simple hidden tab menu that opens when the tab is hovered. There are many javascript versions of this but not so many css versions. In fact I think that this is the only one.

This works in IE5.5, IE6, IE7, Firefox, Opera, Netscape 8 and Mac Firefox 1.5 and Safari though not Mac IE5.x.

It would also be possible to have multiple tabs open out multiple menus.

Cascading Style Sheet

Because a lot of visitors are having trouble with the conditional comments and the cascading style sheets for this menu I have now removed the CSS to separate files and now show how to load these into the page.

If you look at the header of this page you will see that the normal method of loading a file is used for the non-ie browser css.

<link rel="stylesheet" media="all" type="text/css" href="css/hidden.css" />

The hidden.css file

The IE only style sheet is loaded using the conditional comment.

<!--[if lte IE 6]>
<link rel="stylesheet" media="all" type="text/css" href="css/hidden_ie.css" />
<![endif]-->

The hidden_ie.css file

The xhtml

The xhtml code for the flyout menu can be seen here in text format. Internet Explorer users may need to use 'view source' to see the actual markup.

You will see that conditional comments have been used to hold the IE specific version of the menu which used nested tables. The other browsers will not see the tables and instead will use the normal unordered lists.

Please note that you will also need a standards compliant !doctype for this menu to work correctly.

Copyright

Because of all the time and effort spent in producing this demonstration I would ask that you respect my copyright.

1. If you are using this on a personal web site then please add a link back to CSSplay and retain any copyright comment in the stylesheet.
A donation to the 'Support CSSplay' fund would be appreciated.

2. If you are using this on a commercial web site, or as a paying job for a client, then please email me asking for permission - stu{at}cssplay.co.uk and in this case a donation to the 'Support CSSplay' fund is required.

3. If you are having problems integrating any of my demonstrations into your website then I now offer a service to fault find and correct any errors that you may have introduced. Please email me for more information.




CSS play recommend

Bitrix Site ManagerFlash LoadedFree, practical CSS menus, layouts, and examplesCreative stock imagesPSD to HTML, PSD to XHTML Service by PSD2HTML.com. You Design - We XHTML / CSS.SitegrinderSocial Media Applications On DemandDHTML menu & Javascript menu creator - Powerful web menu solutions