Horizontal menu on top?

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"
Locked
Teddy

Horizontal menu on top?

Post by Teddy »

Hi!

I probably wrote this question in the wrong place but here is my problem:

I have some problems with my horizontal menu. The drop down meny expands when I hoover it but it drops down behind the vertical menu and even a pic I have inserted in the content box.

How do I make this menu come on top of the other menus when I hoover it?

You can also answear it on this thread: http://forum.cmsmadesimple.org/index.ph ... 213.0.html

Thanks in advance

Ted
Last edited by Teddy on Mon Aug 14, 2006 2:55 pm, edited 1 time in total.
Leav
Forum Members
Forum Members
Posts: 38
Joined: Fri Aug 11, 2006 8:26 pm

Re: Horizontal menu on top?

Post by Leav »

in the future, only one thread is enough  ;D

Have you tried moving the order of the tags? try defining the upper menu after the left menu and everything else in the HTML, that might sort it out...
but I would wait for someone qualified to answer this :P

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

Re: Horizontal menu on top?

Post by Dr.CSS »

do you have a link or some code you could post with some more info?what CMSMS ver. which menu, what style sheet.
Teddy

Re: Horizontal menu on top?

Post by Teddy »

Hi!

Im using version 1.0-beta3 "Hawaii".

Template: Ellnav Horiz/vert L col

With these stylesheets:
  • Tools
    Typography
    Forms
    Layout Ellnav Horiz/Vert L col
    Layout
    Nav-vertical
    Colours
    Nav-Horizontal
    Default CSSMenu Horizontal
The link to the page is: liwacolor.sbbs.se

Regards

Ted
Last edited by Teddy on Thu Aug 17, 2006 4:58 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Horizontal menu on top?

Post by Dr.CSS »

Sorry Ted the link gives me a Firefox can't find the server at www.liwacolor.sbbs.se.
Teddy

Re: Horizontal menu on top?

Post by Teddy »

Sorry!

I gave the wrong URL  ;D

This is the right one!

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

Re: Horizontal menu on top?

Post by Dr.CSS »

Try this...

    div#content {
      position: relative;    Delete this line
        margin: 1.5em auto 2em 0;
        padding: 0;
        text-align: left;
    }
Teddy

Re: Horizontal menu on top?

Post by Teddy »

Great!  ;D

That one realy did the works!

Thank you

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

Re: Horizontal menu on top?

Post by Dr.CSS »

Your Welcome...
rich8715

Re: Horizontal menu on top?

Post by rich8715 »

Try this...

    div#content {
        position: relative;    Delete this line
        margin: 1.5em auto 2em 0;
        padding: 0;
        text-align: left;
    }
Would you be willing to explain why having "position: relative" on the content div results in the CSS menu's popping underneath elements that are inside the content div?

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

Re: Horizontal menu on top?

Post by Dr.CSS »

I can try... the menu above has the main ul set to absolute, it's going to be right where you put it and the underneath li li is relative to it, the content set at relative makes it only take the postion of the element it is in, his container, into account making it ignore anything else coming it's way, "I don't care about you I get mine from something else so there" if you know what I mean.

Hope this makes sense, best I can do.  ;)

This is good for 3 or 4 pc. image headers like this http://www.multiintech.com/cmsite/index ... eunis.html it has 4 images in the header including the site name.

#primary-nav ul {
position: absolute;
top: auto;
display: none;
}
#primary-nav ul ul {
margin-top: 1px;
margin-left: -1px;
left: 100%;
top: 0px;
}

#primary-nav li {
margin-left: -1px;
float: left;
}
#primary-nav li li {
margin-left: 0px;
margin-top: -1px;
float: none;
position: relative;
}
Locked

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