Skip to content

How to avoid breaking <li>’s in an inline <ul>?

In fact what you need is to change your <ul> element to

and <li> to

the nowrap approach will make that if you add a really long name, you’ll end with a massive width <li> element. Unless you’re looking for that, your approach is incorrect, might work in this specific case, but it’s a NO-NO in general . I mean, it might apply to your case and ONLY TO YOUR CASE, but for people seeing this thread, it’s better not to follow that path since it’s incorrect

One Comment

Leave a Reply

Your email address will not be published.

Share via
Copy link
Powered by Social Snap