What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 128 Stack Exchange communities.

Possible Duplicate:
Post Overflow

Look at the comments for this question.

http://meta.stackexchange.com/questions/41065/this-ad-worked-for-me

'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.

add comment

2 Answers 2

$('.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. quirksmode.org/oddsandends/wbr.html Apparently the "good guy" here is IE, the only one with that (except FF 3.1) blog.stchur.com/2007/02/22/… –  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
add comment

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
add comment

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