Saturday, August 20, 2005, 8:52:17 AM, ross wrote:
> .firstname {
>  width: 100px;
> }

> long name is entered the div size expands with the text.

In IE/win.  You shouldn't see this problem in other browsers that correctly
handle width.  That said, there's no standard property to force a text wrap
in the middle of a word, so in most browsers you'll have to live words
hanging over the right side unless you cut them somewhere in the HTML.
As for IE, you /can/ give the DIV the invalid "word-wrap:break-word;" and
IE/win will cut words to fit.

As a general CSS2 solution to limiting a word length I think I saw clever
contraption using hidden overflow and generated content to produce fake
ellipsis when the word was longer than allowed, but this will certainly not
fly in IE.

Steve
-- 
http://mrclay.org/ : http://frenchhorns.mrclay.org/

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

Reply via email to