jquery - line break after certain number or characters or words -


is there way wrap text (line break) after word or number or letters? use case long logo text.

the following css breaks word in half, not useful me.

word-wrap: break-word; word-break: break-all; 

white-space: nowrap not useful me because need line break @ point.

you either put content in div , put display flex, flex-wrap, wrap whatever content in container.

<div class="container">   <img src"logo">   <p>text</p> </div>  container{ display:flex; flex-wrap:wrap; width:200px } 

Comments