Harly Walsh
Harly Walsh

Reputation: 93

Why is this text going out of the div bounds

I'm not sure what is going on here. I've tried changing the display, position, width and max width of both elements. How do I get this text to make a new line on its own?

Element

Parent

Upvotes: 0

Views: 141

Answers (2)

yts
yts

Reputation: 1890

It's probably not wrapping now because of the white-space: nowrap rule. Try removing or overriding that.

Upvotes: 1

Codenatial Developer
Codenatial Developer

Reputation: 318

you have added white-space: nowrap for g please remove it or add white-space: normal

Upvotes: 1

Related Questions