In the css flyout menu on this site, under “About Me”, when you rollover the submenu “Contact Us”, the only menu that should appear is “Child of Contact Us”.
However, as you can see, the “Child of Awards & Honors” menu also appears.
I’ve traced the problem to one space in my CSS below. The unminified CSS works fine. The problem only appears when the css is minified. Any ideas how to work around this?
This works:
.menu.nav ul li:hover ul,.menu.nav ul a:hover ul,.menu.nav ul:hover ul :hover ul,.menu.nav ul:hover ul:hover ul :hover ul{ visibility: visible;}
.menu.nav ul:hover ul ul,.menu.nav ul:hover ul:hover ul ul{ visibility: hidden; }
This does not:
.menu.nav ul li:hover ul,.menu.nav ul a:hover ul,.menu.nav ul:hover [B][COLOR="#FF0000"]ul:hover[/COLOR][/B] ul,.menu.nav ul:hover ul:hover ul :hover ul{ visibility: visible;}
.menu.nav ul:hover ul ul,.menu.nav ul:hover ul:hover ul ul{ visibility: hidden; }
Notice that when I remove the space before the 3rd ul :hover in the first line, that’s when the CSS breaks down. Adding that space back, fixes the bug. However, my CSS minifier is set up to remove any spaces before : symbols.