Forum Moderators: not2easy

Message Too Old, No Replies

max size of font?

any way to set a max size for a font

         

topr8

9:07 am on Apr 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



i'm all for user changeable font sizes (most commonly with ie's medium,large,larger choice)

and it hasn't been a problem before, but with a current layout it has become so!

is there any way of setting a max font size? like the max width?

ever hopeful but not optimistic!

[i've a feeling i'm going to have to set the hx's as a fixed size which does resolve the problem, but is not perfect]

Robin_reala

1:08 pm on Apr 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There's not, no. When you say 'set to a specific size' I assume you mean by using pixel sizes for the fonts? If so then you're relying on a bug in IE - other browsers implement text resizing regardless of what units you use.

For what it's worth, as a user if I needed big text to read it I'd rather have the big text and put up with a little breakage than not be able to read the text at all because the webmaster's forced it to stay small.

topr8

1:53 pm on Apr 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



yes, i'd agree, which is why i like to use percentages by my choice for font sizes (i know some like ems or whatever).

in this case the problem was that on max font size (ie) the divs were expanding to accomodate the enlarged text and chaos was ensuing, with other browsers they seem to wrap the font better or overflow over the top of the div without actually making the div boxes wider which was not the prettiest but still kept the main layout working.

Dabrowski

10:07 pm on Apr 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could explicitly set the font size, thus disabling the browser font size function, then have a button to enlarge the font yourself. That way you could control it?