Gustaf,
Oh, fantastic. Thank you very much indeed. That will make a great general purpose solution for this kind of menu.
I have finished working through the CSS changes required to make this work with {{categories -decoration none}} which I have posted below. I noticed that even with -decoration none the categories tree is still rendered with class="mktree" in the version I am using.
At the moment this assumes and requires a containing <div> with class="foregroundcontainer" which is my main page content container. The only reason this is needed in the CSS is to eliminate the <h3>@category_name@</h3> without destroying the general case of the <h3> tag. If a specific class is added to this <h3> tag the requirement for a containing div would be eliminated.
The root of the category tree <ul> for the menu bar is identified as class="mktree" which seems to be still there even with -decoration none. I don't know if this will be true in later versions.
This also still requires each <ul> block to be wrapped in a <div class"submenu">. This demo carries fonts and colours specific to the site I am working on but these can obviously be altered to taste.
I hope it works this time!
Regards
Richard
/* ################### */
/* Menu system classes */
/* ################### */
/* Set the style for links on the menu bar */
div.foregroundcontainer > ul.mktree a:link {font-family: "Segoe UI", arial, sans-serif;
font-weight: bold;
font-size: 10pt;
background-color: transparent}
/* Set style for visited links on the menu bar */
div.foregroundcontainer > ul.mktree a:visited {font-family: "Segoe UI", arial, sans-serif;
font-weight: bold;
font-size: 10pt;
background-color: transparent}
/* Vanish the bits of the OpenAcs Category tree that we don't want */
div.foregroundcontainer > img + img + img + img +h3 {display: none}
/* Hide top layer of PowerofAloe Category tree by fiddling with font size */
div.foregroundcontainer > ul.mktree > li {position: absolute;
left: 40px;
font-size: 0pt;
color: #ffffff;
margin: 0px;
list-style: none}
/* Have to immediately more explicitly re set to size required for menu bar */
div.foregroundcontainer > ul.mktree > li > div.submenu {font-family: "Segoe UI", arial, sans-serif;
font-weight: bold;
font-size: 10pt;
overflow: visible}
/* Use to set position of menubar */
ul.mktree {position: absolute;
border: none;
width: 720px;
top: 9em;
left: 0em;
margin: 0em;
padding: 0em;
z-index: 1}
/* Make sure that the first layer is displayed horizontally */
ul.mktree > li > div.submenu > ul:first-child > li {position: relative;
top: 0px;
left: 0px;
display: inline;
padding: 2px 20px 5px 20px;
color: #6d6f71}
/* Adjust gap between seperate <li> entries in submenus, but not between wrapped entries */
ul.mktree > li > div.submenu > ul:first-child > li div.submenu > ul > li {margin: 7px 0px 7px 6px}
/* Add in the horizontal menu item separator bars */
ul.mktree > li > div.submenu > ul:first-child > li + li {border-left: solid 2px;
border-color: #4a9a44}
/* The addition of this <div> is unavoidable because with a horizontal menubar */
/* you have to take the dropdown out of the flow whilst preserving its position */
/* relative to the top level option selected. A <div> block allows for relative */
/* positioning without upsetting the flow of the horizontal elements. */
div.foregroundcontainer > ul.mktree > li > div.submenu div.submenu {display: none;
position: absolute;
width: 100%;
top: 80%;
left: 0%;
margin: 0px;
padding: 0px;
overflow: visible;
background-color: #ffffff;
opacity: 0.90;
filter:alpha(opacity=90);
-moz-border-radius: 12px}
/* All subsequent descendents are block displayed submenus */
div.foregroundcontainer > ul.mktree > li > div.submenu > ul > li > div.submenu ul {display: block;
list-style: none;
position: relative;
width: 70%;
left: 0px;
top: 0px;
padding: 5px 7px 12px 17px;
margin: 0px;
line-height: 0.9em;
text-align: left;
color: #6d6f71;
z-index: 1}
/* The following pushes sub-sub-menus to the right and down slightly*/
ul.mktree > li > div.submenu > ul > li > div.submenu div.submenu {left: 7.1em; top: 4.3em}
/* The following makes the menus appear when the mouse moves over the items */
ul.mktree > li > div.submenu > ul li:hover > div.submenu {display: block}