drop down menu (css)

They have: 1 posts

Joined: Feb 2006

I'm try to merge the functionality from these two menus:

http://tutorials.alsacreations.com/deroulant/menu-horizontal.htm
http://alistapart.com/d/slidingdoors/v1/v1.html

Here's what I have http://www.christinekane.com/demo/

Can anyone tell me why the line items/drop downs do not position directly under the tabs? Also, any idea how to stop the blinking on the hover?

Thanks!!

Here's the css:

body {
margin: 0;
padding: 0;
background: white;
font: 80% verdana, arial, sans-serif;
}
dl, dt, dd, ul, li {
margin: 0;
padding: 0;
list-style-type: none;
}
#menu {
position: absolute;
width: 100%;
z-index:100;
top: 0;
left: 0;
padding:0px 0px 0px 10px;
}
#menu dl {
float: left;
margin:10px 0px 0px 0px;
padding:0px 0px 0px 0px;
list-style:none;
}
#menu dt {
text-align: center;
float: left;
background:url("left.gif") no-repeat left top;
margin:0;
padding:0 0 0 9px;
border-bottom: 1px solid gray;
}
#menu dd {
position: absolute;
}
#menu li {
display: block;
text-align: center;
background: #fff;
border-left: 1px solid #b7ae88;
border-right: 1px solid #b7ae88;
border-bottom: 1px solid #b7ae88;
}
#menu dt a {
float:left;
background:url("right.gif") no-repeat right top;
padding:5px 15px 4px 6px;
text-decoration:none;
font-weight:bold;
color:#765;
}
#menu dt a:hover {
color:#333;
}
#menu li a {
color: #000;
text-decoration: none;
height: 100%;
border: 0 none;
}
#menu li a:hover {
background: #efede5;
}
#mainContent {
position: absolute;
z-index: 1;
top: 34px;
left: 0;
width: 727px;
height: 550px;
color: #000;
background-color: #fff;
padding: 10px;
margin:0px 0px 0px 10px;
border: 1px solid gray;
}
a {
text-decoration: none;
color: black;
color: #222;
}
/* Commented Backslash Hack
hides rule from IE5-Mac \*/
#menu a {float:none;}
/* End IE5-Mac hack */
#menu a:hover {
color:#333;
}
#menu #current {
background-image:url("left_on.gif");
border-bottom: none;
}
#menu #current a {
background-image:url("right_on.gif");
color:#333;
padding-bottom:5px;
}