Forum Moderators: not2easy

Message Too Old, No Replies

Scalable form input boxes linked to text size

         

optik

8:05 pm on Mar 16, 2009 (gmt 0)

10+ Year Member



I have some CCS scaled input boxes on a form but when users increase the browser text size the boxes remain the same size partially hiding the text.

Is there any way I can get the input boxes to increase in size like they do when a CSS size style isn't applied?

Thanks

bluesmandeluxe

3:08 am on Mar 17, 2009 (gmt 0)

10+ Year Member



Are you using scalable sizing for your boxes and text? % and em?

Pixels are bot "flexible"

optik

10:17 am on Mar 17, 2009 (gmt 0)

10+ Year Member



I tired % instead of pixels but that didn't work, not sure what em is?

What would a relative scale like percentage refer to?

swa66

5:03 pm on Mar 17, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



An "em" is a unit of measure for length.

1em is the width of the upper case letter "M", but most often it's used as the height of the letter just as well.

So if you -in a given font- know a string fits in 20em, no matter how large those letters get scaled, they'll still fit.

optik

12:22 pm on Mar 18, 2009 (gmt 0)

10+ Year Member



That's great em did the trick, thanks.