Hello!
I'm having a bit of trouble with a vertical dropdown menu I created based off of the ideas presented in the A List Apart article
Suckerfish Dropdowns. Getting the menus to work was not a problem, but I notice that one one end of my menu, the dropdown is getting covered up with another box that floats on that side of the area. The behavior can be seen
here when you put your mouse over the "support" menu choice.
CSS is not a strong point of mine (I'm usually a VB6 programmer! LOL), so any help or insight as to why this behavior is occuring would be most helpful. Thanks!
My style sheet:
- Code: Select all
/*--------------- Main page style------------------*/
body {
background-color: silver;
color: black;
background-image: url("images/mainbg.jpg");
font-size: 10pt;
font-family: Verdana, Arial, Tahoma;
}
#contentwrapper {
display: block;
width: 800px;
height: auto;
margin-right: auto;
margin-left: auto;
padding: 0;
border: 0;
background-color: white;
color: black;
}
#titleimage {
display: block;
width: 100%;
margin: 0;
padding: 0;
border: 0;
height: 100px;
position: relative;
background-color: red;
color: black;
}
#content {
display: block;
width: 100%;
height: auto;
margin: 0;
border: 0;
padding: 0;
position: relative;
top: -15px;
background-color: white;
color: black;
clear: left;
}
#popper {
display: block;
width: 200px;
height: auto;
float: right;
background-color: white;
color: black;
margin: 8px;
}
#footer {
display: block;
margin-right: auto;
margin-left: auto;
background-color: white;
color: gray;
text-align: center;
height: 50px;
width: auto;
font-size: 8pt;
vertical-align: middle;
}
/*----------------Pop Up information box styles--------------*/
div.popperbox {
width: 195px;
display: block;
margin-right: auto;
margin-left: auto;
margin-top: 10px;
margin-bottom: 10px;
border: 1px solid black;
background-color: white;
color: black;
z-index: -1;
}
div.pboxtitle {
width: auto;
height: 20px;
position: relative;
top: 0;
left: 0;
border-bottom: 1px solid black;
color: white;
background-color: blue;
font-weight: bold;
text-align: center;
vertical-align: middle;
padding: 0px;
}
div.pboxcontent {
padding: 8px;
margin: 0;
color: black
background-color: silver;
text-align: left;
position: relative;
top: 0;
left: 0;
width: auto;
height: auto;
}
/*----------------Menu styles ------------------------------*/
#nav {
padding: 0;
margin: 0;
list-style: none;
}
#nav li {
float: left;
position: relative;
width: 250px;
text-align: center;
font-weight: bold;
background-color: white;
color: black;
cursor: default;
border-bottom: 1px solid red;
border-width: 1px 0;
padding-top: 10px;
}
#nav li ul {
display: none;
list-style: none;
margin: 0;
padding: 0;
position: absolute;
top: 26px;
left: 0;
font-weight: normal;
border: 1px solid red;
background-color: white;
}
#nav li>ul {
top: auto;
left: auto;
}
#nav li ul li {
border: 0;
padding: 3px;
text-align: left;
}
#nav li:hover ul, #nav li.over ul {
display: block;
}
li#tfirst {
border-left: 25px solid red;
}
li#tlast {
border-right: 25px solid red;
}
li.first {
border-top: 0;
}
li.last {
padding-bottom: 5px;
border-bottom: 0;
}
/*---------- Footer styles ----------- */
#footvalimage {
display: inline;
float: right;
height: 31px;
width: 88px;
border: 0px;
padding: 10px;
}