Obsivus Obsivus - 2 years ago 73
HTML Question

automatically breaking a word correctly?

I am using bootstrap.
Let say I have text that looks like this:


Can I somehow automaticly make sure that it breaks like this if the text does not fit the container:



instead of:



with html/css?

Any tips or hints is appreciated.

Answer Source

You can use <wbr> tag

p {
  width: 60px;  
  border: 1px solid black;

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