Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS menu string don't break for second line

Tags:

html

css

I have a CSS menu.

The problem is that in a ul li a span when I have a long string it doesn't break for the second line, it just continues on one line getting out of the menu.

Here's my CSS code if you want to take a look at it.

What is the problem here? (i have made a simple menu where it works, but in this case, of a dropdown menu - it doesn't)

here's the link http://jsfiddle.net/mr_mikey/nR2t6/

like image 729
mrGott Avatar asked Aug 07 '11 22:08

mrGott


1 Answers

Remove the following style from your CSS:

#mainmenu ul ul a {
    white-space: nowrap;
}
like image 104
NGLN Avatar answered Oct 16 '22 13:10

NGLN