denniss
denniss

Reputation: 17589

Containing very long text inside div

Okay so I have problem containing text inside div. When it's broken down with spaces, it will move to the next line but if there is 1 very long line of text, it won't move to the next line. Can someone help me with the css for this?

Upvotes: 1

Views: 32390

Answers (2)

JimmyWj4EHiM
JimmyWj4EHiM

Reputation: 413

Also you can use:

word-break: break-all;

Upvotes: 1

dkamins
dkamins

Reputation: 21918

You might try this CSS:

word-wrap: break-word;

or this on the containing element:

overflow: hidden;

or

overflow: auto;

Upvotes: 15

Related Questions