skip to content
Website Builder

A CSS only drop-down menu with overlap and overrun

30th December 2006

CSS play Support


CSS play Recommend

PSD to HTMLuk white label shopping carts for resellersFree, practical CSS menus, layouts, and examplesSitegrinder



Information

Based on my prervious menu, this one goes a little further with the styling to give an overrun feature to the left, right and bottom of each sub level menu where the mouse can be moved off the menu by a small amount in each direction and the menu will still stay on screen. This gives a similar feel to the menus produced by javascript.

I have used em values for this menu so that it will stay in shape but you could easily change this to px values. The top level uses fixed widths but can easily be changed to be variable width to fit the text by removing the width values from the '.menu a, .menu a:visited' style.

This works in Internet Explorer IE5.5, IE6, IE7 Firefox, Opera etc.




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

CSS play 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