简体   繁体   中英

How to break a word without cut the word on css

I want to a title like this

Lorem ipsum dolor amet cray thunder cats ramps

chicharrones yuccie prism anim next level

pork belly banh mi incididunt

But this is what i got

Lorem ipsum dolor amet cray thundercats ram

ps chicharrones yuccie prism anim next leve

l pork belly banh mi incididunt

I tried word-break: break-all;

What should i put to make it happen ?

Thank you

Your screenshots imply that either CSS, HTML Tags or HTML Entities force hyphenation.

Check if your text contains <br> , <wbr> or &shy; and remove them.

Declare hyphens: normal; to stop breaking words in generally and word-wrap: break-word; to break words which are wider than the containing box.

text-align: justify; should be working

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM