简体   繁体   中英

Text not wrapping to next line within list item

Have a quick look at the main menu drop down, for example About Us, the child item is not wrapping to the next line in the list item, instead it runs out of line of the list item. I've set an automatic height. A width on the UL LI and anchor. I've tried using

white-space: pre-wrap;

But that trims part of the word. I would greatly appreciated getting this text to sit within the list item. Height of the list item isn't an issue.

Any help would be greatly appreciated!

Remove the white-space: nowrap; from the #section-header #zone-menu ul.nice-menu-down li and change the padding on #section-header #zone-menu ul.nice-menu a to padding: 1em;

您是否尝试过使用word-wrap:break-word

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