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 span display: block.

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -