Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:35
Font sizes
Poster: tony
Dated: Friday January 24 2003 - 21:37:18 GMT
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
Poster: kevin3442
Dated: Wednesday January 29 2003 - 17:51:59 GMT
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
Poster: tony
Dated: Wednesday January 29 2003 - 20:58:55 GMT
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