Free Space on top

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Neo
Advanced
Advanced
Posts: 21
Joined: Sat Oct 04, 2003 4:10 pm

Free Space on top

Post by Neo »

My Page
I always have a huge space on top of my real webpage, when the menu_data.js is included. In my html code there's nothing about a free space on top. If i leave out the menu_data.js everything looks fine.
So i believe it's caused by the menu.
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

You can't have a CSS class called "menu".

Well, you can, but in it you have a couple variables set such as height set to 250px and your page looks offset by about that. Edit the names of your CSS styles or change whats in them. The word 'menu' is used by the Milonic DHTML Menu code and I believe its interpreting what you have defined in your CSS style called menu.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Neo
Advanced
Advanced
Posts: 21
Joined: Sat Oct 04, 2003 4:10 pm

Post by Neo »

I've learned something now.
First check your menu-data.js for not needed code. ;)
At an earlier time i showed the menu in a table cell, so there was the position="relative";
in my menu.
And i forgot to delete this line.
That was everything.
The name of CSS Classes doesn't matter for the menu, at least not inb this case.
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Well alright then, glad to here it. I know the menu does use certain names for styles and such and it allows you to override things in the menu with certain well-named styles. It might not be menu, but mmenu as the class thats important. Oh well, either way, you figured it out and are well on your way to successfully working with the Milonic DHTML Menu.
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Post Reply