Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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: Thursday February 8 2018 - 06:02: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


Poster: kevin3442
Dated: Wednesday January 29 2003 - 17:51:59 GMT


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).


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


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.


Poster: kevin3442
Dated: Thursday January 30 2003 - 4:19:29 GMT

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.