View Single Post
Old 06-03-2004, 02:43 PM   #1 (permalink)
pachrist
Inactive
 
Join Date: 06-03-04
Location: Seattle
Posts: 3
iTrader: 0 / 0%
Latest Blog:
None

pachrist is liked by many
Problem with Dropdown menu AND CSS

Hello all,
I am just figuring out how to use CSS so please bear with me. Ok here is the deal. I have my site that already as a CSS spreadsheet. I am trying to make a dropdown menu using CSS for a section on that site that will also need to point at the other spreadsheet. I know that there are problems with overlap but dont really know how to deal with them. The completed menu is at http://www.northlandcabletv.com/mlte...1/dropdown.asp

This is the code that is in the drop.css that that page refers to:
body {
font-family: arial, helvetica, serif;
font-size: 10pt;
padding: 2em;
margin: 0;
}
a {
text-decoration: none;
}

a:link {
color: #080;
font-weight: bold;
}

a:visited{
color: #080;
font-weight: bold;
}

a:hover {
text-decoration: underline;
}

ul {
list-style: none;
padding: 0;
margin: 0;
}

#nav a {
text-decoration: none;
}

#nav li li a {
display: block;
font-weight: normal;
color: #060;
padding: 0.2em 10px;
}

#nav li li a:hover {
padding: 0.2em 5px;
border: 2px solid #039703;
border-width: 0 5px;
}

li {
float: left;
position: relative;
width: 13em;
text-align: center;
cursor: default;
background-color: white;
border: 1px solid #039703;
border-width: 1px 0;
}

li#first {
border-left-width: 8px;
}

li#last {
border-right-width: 8px;
}

li ul {
display: none;
position: absolute;
top: 100%;
left: 0;
font-weight: normal;
background: url(left.gif) bottom left no-repeat;
padding: 0.5em 0 1em 0;
border-right: solid 1px #039703;
}

li>ul {
top: auto;
left: auto;
}

li li {
display: block;
float: none;
background-color: transparent;
border: 0;
}

li:hover ul, li.over ul {
display: block;
}

What I need to figure out is how to make all of these elements ONLY apply to the code for the dropdown.asp. I simply do not know how to do this without making the dropdown not work. I would imagine that it has to do with renaming the different parts of the code but I am not sure how to do so without messing up the dropdown as I said. Thank you in advance for any help.
pachrist is offline   Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links