
Originally Posted by
ddadmin
If I understood it correctly the OP wants a different style for each header and its sub contents. You can do this by giving different headers/ sub contents additional, different CSS class names, with these class names containing the distinguishing styles for each header. So taking the below snippet of code from your page for example:
Right you are! Thank you so much, I got it working, still a few bugs to work out in my padding but its working ... for some reason it ignores my hover button and uses the default but I can live with that
For anybody finding this that was looking for the same solution here is the code I used in my css file to separate the menu's these are the first two html is below css
Code:
.header1style1 a{
color: white;
display: block;
position: relative; /*To help in the anchoring of the ".statusicon" icon image*/
width: auto;
padding-left: 15px;
text-decoration: none;
background-color: #B9B9DB;
background-image: url(../images/buttons/silvergradient_1.jpg);
background-repeat: repeat-x;
background-position: left center;
font-family: Verdana;
font-size: 14px;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: uppercase;
letter-spacing: 5pt;
padding-top: 5px;
padding-right: 0;
padding-bottom: 5px;
}
.header1style1 a:hover{
color: white;
display: block;
position: relative; /*To help in the anchoring of the ".statusicon" icon image*/
width: auto;
padding-left: 15px;
text-decoration: none;
background-color: #B9B9DB;
background-image: url(../images/buttons/silvergradientover_1.jpg);
background-repeat: repeat-x;
background-position: left center;
font-family: Verdana;
font-size: 14px;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: uppercase;
letter-spacing: 5pt;
padding-top: 5px;
padding-right: 0;
padding-bottom: 5px;
}
.header2style2 a{
color: white;
display: block;
position: relative; /*To help in the anchoring of the ".statusicon" icon image*/
width: auto;
padding-left: 15px;
text-decoration: none;
background-color: #CECBD8;
background-image: url(../images/buttons/silvergradient_2.jpg);
background-repeat: repeat-x;
background-position: left center;
font-family: Verdana;
font-size: 14px;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: uppercase;
letter-spacing: 5pt;
padding-top: 5px;
padding-right: 0;
padding-bottom: 5px;
}
.header2style2 a:hover{
color: white;
display: block;
position: relative; /*To help in the anchoring of the ".statusicon" icon image*/
width: auto;
padding-left: 15px;
text-decoration: none;
background-color: #B9B9DB;
background-image: url(../images/buttons/silvergradientover_2:D.jpg);
background-repeat: repeat-x;
background-position: left center;
font-family: Verdana;
font-size: 14px;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: uppercase;
letter-spacing: 5pt;
padding-top: 5px;
padding-right: 0;
padding-bottom: 5px;
}
Code:
<div class="applemenu">
<div class="silverheader header1style1"><a href="#">Dining Sets</a></div>
<div class="submenu"> <a href="#" >Beech Finish</a> <a href="#">Natural Oak Finish </a> <a href="#">Natural White Finish</a> <a href="#">White Lacqured Finish </a> <a href="#">Cherry, Walnut Finish </a> <a href="#">Espresso, Cappuccino Finish </a> <a href="#">Steel Incorporated Finish </a> <a href="#">Bar Sets </a> <a href="#">Mix Chairs /Bar Stools </a> <a href="#">Section Summary </a> </div>
<div class="applemenu"><div class="silverheader header2style2"><a href="#" >Occasionals</a></div>
</div>
<div class="submenu">
Thanks again for your help!
Bookmarks