On Aug 6, 2010, at 7:34 PM, David Laakso wrote: > Michael Beaudoin wrote: >> I am working on some css/javascript drop down menus and for the >> life of me I can't get the submenus to line up under the nav menu >> item. Right now they are down and to the right. >> >> The offending file is at http://www.ba-doyn.com/junk/ for your >> perusal. >> >> Thanks so much. >> >> Michael >> > > > > No guarantee. Try: > > Replace this declaration: > ul.dropdown ul li { > color: #333; > border-bottom: 1px solid #ccc; > float: none; > background-color: #CCCCCC; > } > > With this declaration: > ul.dropdown ul li { > color: #333;width: 160px; > border-bottom: 1px solid #ccc; > float: none; > background: lime; > top: 10px; > left: 0; > } > And add the padding to this > declaration: > ul.dropdown ul li a { > padding: 5px 0 /*add*/; > border-right: none; > width: 100%; > display: inline-block; > } > > -- > http://chelseacreekstudio.com/ >
David, Thanks so much. Sorry for the delay, but I was unavailable over the weekend. What you did was great. Now, if you don't mind, can you explain what I just did so I can understand? Thanks, Michael ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
