This question has already been answered:

I have such nonsense, with a long text without hyphenation, the table is stretched to extraordinary sizes. alt text

How to solve this problem with CSS?

Thanks in advance

Reported as a duplicate by members of Pavel Mayorov , VenZell , user207618, Darth , Kostiantyn Okhotnyk Jul. 17 at 7:07 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

    3 answers 3

    Try word-wrap: break-word;

      the first thing that came to mind: set the size of the block with the text Well, the second overflow: hidden

        yes, the easiest way is to wrap the content in the block there will be the content and give the block properties like the one in css

         #rama border: 1px solid #faa20a; padding: 10px 10px; margin: 10px 15px 20px 15px; width:400px; height: 600px; overflow: auto; 

        here somewhere you will get a 400x600 block with internal indents and even scrolling, in case the contents (content) will crawl out of its limits.

        • in my opinion scrolling is not cool code needs a transfer)) - Sleepless