Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:28

Fixed Header Issues with menu dropdown


Poster: GreenBoy
Dated: Sunday October 23 2005 - 22:50:52 BST

Hi
I have fixed the menu and header in position at the top of the screen using CSS and the rest of the screen scrolls behind the menu and header...

The issue is that the menu works ok when the page is at its original state but when the page is scrolled the drop down menus, move wih the scrolled page untill they reach the top of the screen - this means that the menu itself is over writen

Any ideas on how to keep the dropdown sub menus in the correct place regardless of the page position - greatfully recieved

I have a test site at http://www.proportal.org where this can be seen.

Thanks
GreenBoy
[/img]


Poster: Andy
Dated: Monday October 24 2005 - 11:32:45 BST

Hi,

It's in your CSS where the problem lies.

You've got the menu embedded inside a DIV with a class of GreenBoy2 and the menu is inheriting CSS used for the this class.

Might be an idea to move the sub menus out of the DIV.

Cheers,
Andy


Poster: GreenBoy
Dated: Monday October 24 2005 - 18:00:50 BST

Hi Andy

Thank you very much for the reply.
I am pretty new to this and thought I was being realy clever with the CSS so sorry if this appears a bit dumb.

Are you saying that the Sub menus can be placed outside of the div while the main menu remains within it - ie to keep it in this position?

Thanks again for your post.
Dave


Poster: Andy
Dated: Tuesday October 25 2005 - 12:46:57 BST

Yes, that's exactly what I'm saying :D


Poster: GreenBoy
Dated: Tuesday October 25 2005 - 18:55:01 BST

Andy - thanks

Unfortunately I am struggling on this - I have wraped the Function PrintSubMenu() in another Div but there seems to be no way to stop this inheriing the position of the page or that od the original Div

Any clues please?


Poster: GreenBoy
Dated: Thursday October 27 2005 - 21:22:41 BST

Further to my last post - tried several combinations of Div's around the sub menu part and nothing is stopping the sub menu scrolling with the main part of the page - whilst the main menu stays static...

Running out of options -

Please - if anyone can halp Id be greatfull as I cant believe that this cant be overcome.

Thanks


Poster: Andy
Dated: Friday October 28 2005 - 13:01:49 BST

Your menus are still embedded inside a DIV, they really don't need to be.

Although the menus will work in DIV's we advise against it because they do strange things, especially when CSS is used.