Setting the height of the menu, not the positioning

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply

What do you think about this forum?

Fantastic!!
3
60%
Cool Man!
2
40%
Okay, I guess
0
No votes
No Opinion
0
No votes
 
Total votes: 5

User avatar
MsKitti
Advanced
Advanced
Posts: 22
Joined: Wed Oct 09, 2002 2:46 am
Location: Houston, TX
Contact:

Setting the height of the menu, not the positioning

Post by MsKitti »

I think I can set the height of a menu. It seems that I did set the height in the last menu I laid out, but for the life of me I don't remember how.

I played around with all settings and nothing worked. Someone tell me please.

I am not talking about the positioning.

MsKitti
http://www.vizualelements.com
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Far as I can tell, there is no direct means of controlling menu height; it seems to derive from the font size used for the menu. I tried a completely styles-based workaround, but I couldn't control the vertical position of the text in a horizontal menu (maybe a weakness in understanding CSS on my part). In the meantime, here's a workaround you could try:

(1) Set the menu's Padding to 0. (2) Insert a 1-pixel transparent gif on either side of the menu item's Description Text. (3) Height. Set the height within each <img> tag (both sides of Description Text) to the desired height of the menu. (4) Horizontal Padding. Because padding is set to 0, you can add horizontal space on either side of the Description Text by using &nbsp; or setting the width within each <img> tag. (5) Vertical Alignment. You'll probably find that your Description Text is now at the bottom of your menu item, with a lot of space above it. To handle that, I defined a class in my .css file: a.menulink {vertical-align: 50%;}. Then I surround my Desciption Text with an <a> tag using that class. A menu item definition would look something like this:

Code: Select all

,"<img src=1px-trans.gif height=25 width=5><a class=menulink>Description&nbsp;Text</a><img src=1px-trans.gif height=25 width=5>","show-menu=menu_whatever",,,1
OK... it's a bit clunky, I admit! But it worked for me (I've only tested this on IE5.5 and IE6.0). Maybe it'll help set you in the right direction for an approach that works for you.

Hope that helps,

Kevin
Post Reply