Different height of menu-entries

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Norbert
Beginner
Beginner
Posts: 7
Joined: Tue Jul 25, 2006 3:21 pm

Different height of menu-entries

Post by Norbert »

Hello,
I am testing the menu for our intranet.
In my menus, the height of topics are different wether there are urls behind them or not? Those with urls are a littlebit higher? Is there a way to avoid this?
My opinion: works fine in all other things.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hello,

There should be no change with regard the height based on the presence of url=; in the menu_data. It is an internal telling the program to make the 'text' or image a link.

We need to see the page. Could you put up a test, or post the html, css, and menu_data.js files here so we can try making one.

What browser and OS has this problem?

You can also try putting in an itemheight, that can be done in the style, menu or item section.

Ruth
Norbert
Beginner
Beginner
Posts: 7
Joined: Tue Jul 25, 2006 3:21 pm

sorry and thanks for immediate reply

Post by Norbert »

ok, I tried to give you stripped demo files and with them, I figured out, that our complex stylesheets are the reason! without them, it looks fine!
I have to figure out, what I can do.
maybe it's our strange
DIV {
PADDING-RIGHT: 0px; DISPLAY: block; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}

that causes some trouble?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

OK, I've worked on finding what in a stylesheet causes things, usually it's generic codes, like margin, td, tr table etc.

The easiest way I've found to do it, is to remove lines at a time. For example, I'd remove the 1st line, save the sheet and see if that changed it. If not I'd leave that line out, and remove the next line and so on until I found which line did it. Then I'd put everything back except the line that seemed to do the change and see if that worked.

The reason for removing a line and not returning it, is that sometimes it's a combination of two lines that affect the item.

I hope that made sense. If yu could give the page I could try and find it. The one you posted shouldn't change the height of the menu, it almost seems as if it's a line that is putting padding in, not making it set at 0. Look for a line that has a generic setting for padding or margin. Usually the body{margin:0 etc, is not that line, but maybe a padding code in that might do it. But some generic code for padding or margin, like in the td, table, tr something like that.

Ruth
Post Reply