I have created a nice drop down section on my site using all lists but the problem is i am stuck with all other lists refering to the CSS code. What are the commands to have certain lists use the CSS and others not? Class or id maybe? Here is the Code:
Code:
<style type="text/css">
<!--
ul {
list-style: none;
padding: 0;
margin: 0;
}
ul li a {
display: block;
text-decoration: none;
color: #444;
background: #EDE1AD;
padding: 3px;
border-top: 1px solid #000;
border-bottom: 1px solid #000
}
a {
font-weight: bold;
color: #333;
}
a {
text-decoration: none;
}
li li a {
display: block;
font-weight: normal;
color: #333;
padding: .45em 0px;
border-right: 1px solid #333;
border-left: 1px solid #333;
border-bottom: 1px solid #333;
}
/* Fix IE. Hide from IE Mac \*/
* html ul li { float: left; }
* html ul li a { height: 1%; }
/* End */
li {
float: left;
position: relative;
width: 105px;
height: 20px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
text-align: center;
cursor: default;
background-color: white;
}
li ul {
display: none;
position: absolute;
top: 100%;
left: 0;
font-weight: normal;
background: #000;
padding: 0em 0px 0em 0px;
}
li>ul {
top: auto;
left: auto;
}
li li {
display: block;
float: none;
background-color: #000;
}
li:hover ul, li.over ul {
display: block;
}
__________________
I can read it,
and understand it,
but when i try it everything goes wrong.
Reading master, Coding failure