Ask coding questions

← Back to all posts
why is padding not working
ch1ck3n (2882)

as you can see the $100 is overflowing in the div

and the green part is the padding, and it's going over it.

i want it so that it wraps the text around so that it does not overflow

Answered by Coder100 (19280) [earned 5 cycles]
View Answer
Coder100 (19280)

word-break: break-all;
the default breaks by word, but when there are no words, that's kind of hard to do.

QuickV (197)

Hm... ckncoins... thinkity think think @ch1ck3n

ch1ck3n (2882)

@QuickV what did your thinking tell you

QuickV (197)

That maybe this is about to become a legendary new project. @ch1ck3n