Font sizes

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
tony
Super Advanced
Super Advanced
Posts: 39
Joined: Mon Aug 19, 2002 2:34 pm
Location: Derby UK
Contact:

Font sizes

Post by tony »

Hi folks

Since getting a new monitor I increased my screen resolution and played around with the windows font size to get the balance I wanted. Also on some browsers I have played with the font sizing there too.

Now, because font size within the menu is expressed in points, with as far as I know, no other choice eg ems, the font size of the menu can end up being 'left behind' other settings and becoming smaller than the rest of the webpage. Is there any way round this? Could it be something for the future?

Best wishes

Tony
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Tony,

The default unit of measure for the font size property in the menus is points, but you can specify em. Just put the size/measure combo in a quoted string, in the style array's font size element... like so: ".75em". The font for any menu using that style will now change with the text size you set in your browser. One problem though: if you change the browser's preferred text size while on a page with a menu, the menu does not necessarily resize unless the page is reloaded (vertical menus perform better than horizontal menus on this score, if I recall right... it might be the other way round).

Kevin
tony
Super Advanced
Super Advanced
Posts: 39
Joined: Mon Aug 19, 2002 2:34 pm
Location: Derby UK
Contact:

Post by tony »

Thanks Kevin

That certainly works in giving a font size which keeps track with the page font size! However, of course it also implies expressing menu sizing in ems as well. eg

addmenu(menu=["testimonial",,,"40em",1,"",style2,,"left",effect,,,,,,,,,,,,

However, when I do this, the width of the popout menu does not increase to 40ems - it merely sizes to the minimum necessary for the text to be visible, which would be OK except that it also kills the 1pt dividing line between successive entries on the popped out menu.

Any wisdom on this?

Very many thanks.

Tony
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Sorry Tony. My last reply pretty much tapped out all the wisdom I had on that topic. I've never tried applying em to anything but the font.

Kevin
Post Reply