Home › Forums › CSS › Sub menu nesting below 1st page tab, not parent tab › Reply To: Sub menu nesting below 1st page tab, not parent tab
September 22, 2013 at 11:07 am
#150919
Member
I can’t see anything specifically wrong but it must be a positioning matter perhaps related to a css cascade override.
I dislike using those deep selectors like #header # mainmenu ul li ul li a.
Firstly, you don’t need two ID tags in there, just the second will do. I prefer to give each menu level it’s own class . It makes the CSS easier to write and understand.
Here’s a reference menu I keep around, perhaps you can use it to diagnose your menu.
http://codepen.io/Paulie-D/pen/22c4ca602bda363099133ded6bca2294
BTW, I notice a property float:center
in your CSS…it doesn’t exist.