text - Break word with CSS? -
i work web site , have many long word in menu. display them in 2 line not one. used word-wrap proprety in css.
{word-wrap: break-word}
but property breaks word.
for example have : solution enterprise
when use word-wrap property :
solution enter prise
whereas have:
solution enterprise
thanks
various options, mentioned in comments:
- set width on link wrapper (
li
or whatever) words naturally wrap; - add
<br>
element want words wrap; - wrap
span
around word(s) wrap , set spandisplay: block
.
Comments
Post a Comment