[css-d] Resize text based on container?

2008-04-09 Thread Dave M G
CSS-d,

I have a div tag that shows the name of a logged in user. The name can 
vary from 6 to 16 characters.

With the design I've currently got, most names fit in. But I've realized 
that if a name is too big, it runs past the edges of the div.

Is there a way to make the size of the text be constrained so that if 
it's too big for the div, that it will be shrunk or squeezed to fit?

-- 
Dave M G
Articlass - open source CMS
http://articlass.org
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Resize text based on container?

2008-04-09 Thread Alan Gresley
Dave M G wrote:

 CSS-d,
 
 I have a div tag that shows the name of a logged in user. The name can 
 vary from 6 to 16 characters.
 
 With the design I've currently got, most names fit in. But I've realized 
 that if a name is too big, it runs past the edges of the div.
 
 Is there a way to make the size of the text be constrained so that if 
 it's too big for the div, that it will be shrunk or squeezed to fit?


What about accessibility? How about changing the design to accommodate a 
div that may have a name (you didn't indicate forename(s) or surnames) 
containing up to 20 characters like Christina Fitzgerald. That is just 
a random name length. Remember that text in input boxes grow when 
bumping up the text size.


Alan

http://css-class.com/test/




__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/