Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

Possible Duplicate:
Post Overflow

Look at the comments for this question.

'Nuff said?

share|improve this question

marked as duplicate by Shog9, Andreas Bonini, perbert, Adam Davis, John Saunders Mar 4 '10 at 2:30

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

$('.comment-text div').attr('style', 'word-wrap: break-word; width: 650px')
share|improve this answer
If I'm not mistaken word-wrap did funky things in IE. Apparently the "good guy" here is IE, the only one with that (except FF 3.1)… – perbert Mar 4 '10 at 2:17
comment text is in fact elastic, though -- there may or may not be UI there depending on whether you own the comment, # of upvotes (imagine 1000 upvotes on a comment), etc. And to my knowledge none of the fancy force-word-break things work for elastic layouts. – Jeff Atwood Apr 14 '10 at 7:05

Easy fix:

.comments {
    overflow: hidden;

alt text

share|improve this answer
Just applied that by Firebug and it didn't work.. – Earlz Mar 3 '10 at 23:47
Won't that just hide the horizontal scrollbar in the browser? – Robert Harvey Mar 3 '10 at 23:49
@earlz: it does work for me. Are you sure you applied it to the correct element? @Robert: no it doesn't. It clips the extra text. – Andreas Bonini Mar 3 '10 at 23:51
I applied it to the <div> containing the comment(inside the <td>) – Earlz Mar 3 '10 at 23:53
What happens to word-wrap? – Robert Harvey Mar 3 '10 at 23:53
oh nvm.. yea, applied the actual style rule and it works... except for with me it makes a scrollbar – Earlz Mar 3 '10 at 23:54
@Robert: nothing. All hidden does is to hide (clip) the text larger than the width of the element. If the text isn't a single word larger than the width of the element then it inserts a line break without clipping. – Andreas Bonini Mar 3 '10 at 23:55
@earlz: that's a rendering bug in Firefox that happens non deterministically when you change overflow on the fly. Try again and it won't show it. It will never show it if you put the rule in a .css file – Andreas Bonini Mar 3 '10 at 23:57
That might work, but what about for comments like @Robert Harvey's on the same page which didn't wrap either yet wasn't just one long word? – a_m0d Mar 3 '10 at 23:57
You should do overflow:auto instead of :hidden. That way the actual content isn't lost, and you can still ... enjoy ... it all. – D_N Mar 4 '10 at 0:01
Case in point, the article linked to would hide the attribution to Robert Harvey in the comment under the offender if it were just hidden. – D_N Mar 4 '10 at 0:04

Not the answer you're looking for? Browse other questions tagged .