A
Anonymous
Guest
I have a table for a navigational menu.
I have set up a few classes, for the different sections of a table that will make up the nav menu.
I have the styles set up properly. They are as follows:
The following code is for the menu items
The following is for the Menu section headers:
I have set these up this way because I want to have borders around each cell.
I have the code in my html to display the menu, but It doesn't work properly:
The section heading displays the text in bold, but it has the same padding on the left and the color from the rest of the menu.
I want the header to be black like the style specifys. How should I modify the code? I have the "menu_title" in a cell, but it is in the table where the "menu" class is specified. I think its cancelling itself out.
You can see the file I am talking about at http://jacob.digitalgravy.net/
I am rebuilding a site to be valid xhtml. I have the original menu that I am trying to create made up of a table, and I'm trying to do the whole xhtml/css thing. You can see the original menu at http://www.spe-le-yai.org, this is how I want it to look.
Any help would be appreciated.
I have set up a few classes, for the different sections of a table that will make up the nav menu.
I have the styles set up properly. They are as follows:
The following code is for the menu items
Code:
.menu td {
background-color: #900;
border: .5px solid white;
border-spacing: 0px;
padding-left: 4px;
}
.menu {
background-color: white;
color: #FFFFFF;
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
font-weight: normal;
}
.menu a:link {
color: #FFFFFF;
text-decoration: none;
}
.menu a:visited {
color: #FFFFFF;
text-decoration: none;
}
.menu a:hover {
color: #FF0000;
text-decoration: none;
}
.menu a:active {
color: #FFFFFF;
text-decoration: none;
}
.menu a:focus {
color: #FF0000;
}
The following is for the Menu section headers:
Code:
.menu-title td {
background-color: #000;
color: #fff;
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
font-weight: bold;
}
I have set these up this way because I want to have borders around each cell.
I have the code in my html to display the menu, but It doesn't work properly:
Code:
<table width="100" class="menu">
<tr class="menu-title">
<td height="20">Departments</td>
</tr>
<tr>
<td><a href="/">Home</a></td>
</tr>
<tr>
<td><a href="/calendar/">Calendar</a></td>
</tr>
<tr>
<td><a href="/programs/">Lodge Programs</a></td>
</tr>
<tr>
<td><a href="/howl/">The Howl</a></td>
</tr>
<tr>
<td><a href="/leadership/">Leadership</a></td>
</tr>
<tr>
<td><a href="/committees/">Committees</a></td>
</tr>
<td><a href="/troop_rep/">Troop OA<br />Reps Corner</a></td>
<tr>
<td><a href="/resources/">Resources</a></td>
</tr>
<tr>
<td><a href="/links/">Links</a></td>
</tr>
</table>
</div>
The section heading displays the text in bold, but it has the same padding on the left and the color from the rest of the menu.
I want the header to be black like the style specifys. How should I modify the code? I have the "menu_title" in a cell, but it is in the table where the "menu" class is specified. I think its cancelling itself out.
You can see the file I am talking about at http://jacob.digitalgravy.net/
I am rebuilding a site to be valid xhtml. I have the original menu that I am trying to create made up of a table, and I'm trying to do the whole xhtml/css thing. You can see the original menu at http://www.spe-le-yai.org, this is how I want it to look.
Any help would be appreciated.