horizontal CSS-menu and collaps of sub-items problem

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
mev
Power Poster
Power Poster
Posts: 371
Joined: Wed Apr 25, 2007 5:00 pm

horizontal CSS-menu and collaps of sub-items problem

Post by mev »

Goodmorning all!

On my test-site  I'm running CMS Made Simple 1.0.4 and have a problem with the horizontal CSS-menu:
-the dropdown (secondary) menu-items do collaps, but the lower ones disappear partly behind other elements positioned on the page, especially if such other item has a background specified ! I could change the background of such elements to transparent, but that's not always possible/meant to be in this layout
-And, apart from that, the secondary menu-items are anyway hardly to be clicked on, they just disapear quickly, users have try over and over again.

These problems exist in IE6, IE7, Firefox 2

I made my own template, put  {menu template='cssmenu.tpl'} in it.
Connected stylesheets are;
-my own css
-the standard stylesheet "Navigation: CSSMenu-Horizontal" (which I adapted)
-the standard stylesheet: "Accessibility and cross-browser tools"

The test-page (working on it for a client) can be seen at:
http://www.willemijnstraeter.nl/cmsmade ... ge=home-kl

It regards the meni-item: 'Klinefelter Syndroom' and especially it's 2nd drop-down sub-item 'Publicaties'
(the other menu-items are there for testing out another site earlier)

I'm trying to find a solution since 2 days (!!), but cannot find it!
Is it a css-problem, or something to do with this cssmenu-template?

Could someone pleaseplease be so kind to have a look??
Thanks so much in advance !!

Willemijn
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: horizontal CSS-menu and collaps of sub-items problem

Post by Dr.CSS »

The problem is you have position: absolute/relative on everything... use it only when absolutely necessary... margins and padding are much better choices... 
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: horizontal CSS-menu and collaps of sub-items problem

Post by Nullig »

If you change your menu div to have:

height: 40px;

so it's not covering the top of your content boxes and remove the z-index from the

#linkercontent  and  #rechtercontent

divs, that should make the menus visible.

Nullig
mev
Power Poster
Power Poster
Posts: 371
Joined: Wed Apr 25, 2007 5:00 pm

Re: horizontal CSS-menu and collaps of sub-items problem

Post by mev »

mark wrote: The problem is you have position: absolute/relative on everything... use it only when absolutely necessary... margins and padding are much better choices...   
Why is that bad, mark??

willemijn
mev
Power Poster
Power Poster
Posts: 371
Joined: Wed Apr 25, 2007 5:00 pm

Re: horizontal CSS-menu and collaps of sub-items problem

Post by mev »

Nullig wrote: If you change your menu div to have:
height: 40px;
so it's not covering the top of your content boxes and remove the z-index from the
#linkercontent  and  #rechtercontent divs, that should make the menus visible.

Nullig
Thanks a lot Nullig,
that works, great!


willemijn
Post Reply

Return to “Layout and Design (CSS & HTML)”