ottomated
27 Jan 2010, 01:17 AM
hello,
I have been working on this website for a while now. I am slowly getting accustomed to css and javascript. Anyhow I cannot solve this problem and it has been bothering me so I am here to get your help.
I have a pure css navigation menu on top of my website and everything works fine. however the parent menu and the submenus are not lined up correctly. Right now I am faking it with an absolute definition of where my submenu should be. Ideally, I want my submenu and my parent menu to be lined up in their centerline.
#navigation li ul {
margin:8px;
padding:0px;
display:none;
position:absolute;
left: -20px;
top:17px;
line-height:30px;
font-size:13px;
}
the problem is, when ever I try messing with the style setup, the menu stops working. so I have no clue how to do it. I wanted to know if anybody on this forum knew how to line the parent menu and the submenu by their centerline. the website is this:
WEBSITE (http://student.seas.gwu.edu/~ottobahn/test.html)
any input is appreciated.
I have been working on this website for a while now. I am slowly getting accustomed to css and javascript. Anyhow I cannot solve this problem and it has been bothering me so I am here to get your help.
I have a pure css navigation menu on top of my website and everything works fine. however the parent menu and the submenus are not lined up correctly. Right now I am faking it with an absolute definition of where my submenu should be. Ideally, I want my submenu and my parent menu to be lined up in their centerline.
#navigation li ul {
margin:8px;
padding:0px;
display:none;
position:absolute;
left: -20px;
top:17px;
line-height:30px;
font-size:13px;
}
the problem is, when ever I try messing with the style setup, the menu stops working. so I have no clue how to do it. I wanted to know if anybody on this forum knew how to line the parent menu and the submenu by their centerline. the website is this:
WEBSITE (http://student.seas.gwu.edu/~ottobahn/test.html)
any input is appreciated.