Forum Moderators: not2easy
This is part of the html
<table>
<Tr>
<TD class="toplinks" WIDTH="20%" ALIGN="CENTER">
<A HREF="Whats.html">What's New</A>
</TD>
<TD class="toplinks" WIDTH="20%" ALIGN="CENTER">
<A HREF="contact.html">Contact Us</A>
</TD>
<TD class="toplinks" WIDTH="20%" ALIGN="CENTER">
<A HREF="FAQ.html">FAQ</A>
</TD>
<TD class="toplinks" WIDTH="20%" ALIGN="CENTER">
<A HREF="links.html">Links</A>
</td>
</TR>
</TABLE>
Here is the CSS
td.toplinks a{
background-color: #ff9966;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: .85em;
padding: 0;
}
A:link{
color: #006666;
text-decoration: none;
}
A:visited{
color: #003333;
text-decoration: none;
}
A:hover{
display:block;
color: yellow;
text-decoration: none;
background: #006666;
}
A:active{
color: purple;
text-decoration: none;
}
You might need to play with the way you select them of course but the general idea would be:
td a { display: block; }
That'll make them as wide as the container (the td), you may even need to adjust their height to work with your table cells.
Of course, no post like that can go without a slight reprimand from the clean coding police though ;) --- Use a list, instead: it makes more sense!
hehe, hope that helps
Nick
<a href="foo.html" class="bgrollover">Link one</a>
<a href="bar.html" class="bgrollover">Link two</a>
<a href="foobar.html" class="bgrollover">Link three</a>
a.bgrollover {
background-color: #f00;
color: #fff;
display: block;
margin: 1px;
padding: 3px;
}
a.bgrollover:hover {
background-color: #00f;
}
Should do it more effectively.
Best regards,
Lars