Francky, I wanted the text to take up the same relative amount of space within the DIV no matter what the resolution size or the window size is (obviously there needs to be limits) this would mean scaling the Font to match the DIV size not the DIV to the Font size.
I suppose this is not possible with CSS and if I have to I'll look into scripting something. Regards Pete -----Original Message----- From: francky [mailto:[EMAIL PROTECTED] Sent: 08 September 2006 11:46 To: [EMAIL PROTECTED] Cc: [email protected] Subject: Re: [css-d] Automatically scaling fonts Pete Home wrote: >Thanks Francky, > >In design terms allowing the user to resize fonts can throw out your >design and cause scroll bars etc to change your layout. I understand >that this is a requirement especially for accessibility reasons. >However, certain things are different. Take this for example, > >[...] >There is never going to be more to see, but if the window size >increases, the navbox gets bigger, but the text remains the same size, >not filling the box. > >On the other hand, if I keep the font-size using em then the user can >break the menu if they increase the size. This seems like a lose lose situation. > > Yes, your code is giving this testpage (1) <http://home.tiscali.nl/developerscorner/css-discuss/test-fontscaling-a.html >. Then you can size the container not relative to the screen size, but relative to the font size: in em's instead of %%. This way (needs fine tuning): testpage (2) <http://home.tiscali.nl/developerscorner/css-discuss/test-fontscaling-b.html >. Maybe there will come other difficulties for the layout now, but is doesn't break increasing font size. :-) Greetings, francky ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
