skip to content
CSS play - web design and assistance

A CSS only validating flyout menu - NO javascript

24th February 2006




Please note that this is a VERY OLD version, produced over 5 years ago and is left here for 'posterity'. If you want the very latest flyout using modern styling techniques please see the latest version found here - Latest Flyout.




Support CSS play


If every visitor made a £5 GBP donation each year then I could offer all my demos for FREE.

www.wix.com

CSS play recommend

Free, practical CSS menus, layouts, and examplesPSD to HTMLSitegrinder

CSS play Recommend

  • Surrey web design
    Leading web design company in Surrey
  • VPS Hosting
    Virtuozzo VPS Hosting - $19.95/mo
  • Myspace layouts and counter
    Lyrics, polls, images & backgrounds -Free!
  • Phuket guide
    A complete guide to Phuket
  • Pretronics UK
    Pre Press Servicing
  • Web hosting, dedicated servers
    Web reseller, managed servers
  • www.thai.se
    Thailand guide

Information

I have had heaps of requests for my CSS ONLY horizontal drop down menu that works in Internet Explorer to be converted into a vertical flyout menu.

Because this uses a method that is not strictly valid xhtml I have resisted this BUT now I have relented.

Above is a flyout menu system that has two sub menus from the DEMOS item and one sub menu on all the others.

This works in Internet Explorer as well as Firefox etc. and does NOT use javascript.

Please do not contact me saying this does not validate, or does not work in Safari etc. It is purely to demonstrate that a CSS ONLY flyout menu can be made to work in Internet Explorer.

Opera 8.xx has a problem with the Google ads but I believe Opera 9 fixes this.

4th April 2006

Updated to change the colours and to show how to vary the width of the sub levels



Cascading Style Sheet

16th March 2006

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/flyout.css" />

The flyout.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/flyout_ie.css" />
<![endif]-->

The flyout_ie.css file

The xhtml

The xhtml code for the flyout menu can be seen here in text format.

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.



  • Orlando Vacation Condos

Testimonial

"The citroen.co.uk web site uses
CSS play code for the site drop down menus.
This code works seamlessly in IE 6 & 7, and is an excellent solution to the Creative requirements of the site."

Damon Clark - Brandwidth

CSS play pages

  • Favicon Advertising
  • Half Banner Advertising
  • Advertising rates
  • Web design & assistance
  • CSS Menus - NEW website!

  • CSS (Design) - TOP.ORG