IamNOOB IamNOOB - 1 year ago 104
HTML Question

How to break a line after some certain width in css

I am designing a chat ui.

In my chat bubble when i enter a lot of characters it goes outside the bubble.

Are there any css techniques to break a line after certain width ?

Answer Source

  width: 100px;
  border: 1px solid #111;
  word-break: break-all;
<p>some random text jfkdfjkd jkfdkf</p>

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download