Re: [css-d] Wrapping Long Words

2007-09-24 Thread David Dorward
On 23/09/2007, Christian Höltje [EMAIL PROTECTED] wrote:
 I have a comment on my blog where they used a very long URL.
 http://docwhat.gerf.org/2007/05/junkmail/#comment-2116

 Is there a good way to make this wrap when it goes past the width, if
 only in FF and Opera?

The simple, reliable method is to disallow exceptionally long words on
the server. When it comes to URLs you can trim the middle.

a 
href=http://very.long.example.com/url/that/will/annoy/;very.longhellip;ll/annoy//a

-- 
David Dorward http://dorward.me.ukhttp://blog.dorward.me.uk
__
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] Wrapping Long Words

2007-09-23 Thread Gunlaug Sørtun
Christian Höltje wrote:
 I have a comment on my blog where they used a very long URL. 
 http://docwhat.gerf.org/2007/05/junkmail/#comment-2116
 
 I tried making the A element overflow: wrap, but that didn't work (I 
 presume because it's inline, not block).

The 'overflow: 'only works on block elements with declared dimensions,
and 'overflow: wrap' is an unknown value.

 Is there a good way to make this wrap when it goes past the width, if
  only in FF and Opera?

Not really - unless some browsers support something like 'wrap-option:
emergency' suggested in CSS3 module: text.

In your case I would simply hide the overflow on the entire block...

.comment-content {overflow: hidden;}

...as that won't disturb anything regarding the link or otherwise, AFAICS.

regards
Georg
-- 
http://www.gunlaug.no
__
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/