Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

how to break long text into multiple line in vu

I am showing a line in vue as shown below.

However the text is long to show in one line, wondering how to break one line into multiples lines automatically

<span class="text-xs">Make.Your.Case.With.These.8.Law.Firm.Interview.Questions.and.Answers</span>

enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

As span‘s width is already limited, you can add word-break: break-all; styles to span, so no matter how long you word is, if it’s not fit in the container, it will break into multiple lines, ignoring all of the language rules.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading