arst06d
Programmer
- Nov 29, 2002
- 324
Hi
I cannot get the content of the <td> to center vertically in the cell. I've tried using valign=middle in the <td> itself, and in the class definition. Vertical-Align=middle doesn't work either.
Any ideas, please?
<style type="text/css">
TABLE.menu
{
WIDTH: 537px;
}
TD.navButtons
{
height: 40;
TEXT-ALIGN: center;
FONT-SIZE: 16pt;
}
TD.navButtons A
{
width: 100%;
height: 100%;
align: center;
COLOR: yellow;
BACKGROUND-COLOR: royalblue;
text-decoration: none;
}
TD.navButtons A:hover
{
width: 100%;
height: 100%;
align: center;
COLOR: blue;
BACKGROUND-COLOR: yellow;
text-decoration: none;
}
<table class="menu" align="center">
<tr>
<td class="navbuttons" colspan="3" >
<a href="#">ELink Information</a>
</td>
</tr>
<tr>
<td class="navbuttons" colspan="3" >
<a href="#">EoD Revaluation Rates</a>
</td>
</tr>
</table>
I cannot get the content of the <td> to center vertically in the cell. I've tried using valign=middle in the <td> itself, and in the class definition. Vertical-Align=middle doesn't work either.
Any ideas, please?
<style type="text/css">
TABLE.menu
{
WIDTH: 537px;
}
TD.navButtons
{
height: 40;
TEXT-ALIGN: center;
FONT-SIZE: 16pt;
}
TD.navButtons A
{
width: 100%;
height: 100%;
align: center;
COLOR: yellow;
BACKGROUND-COLOR: royalblue;
text-decoration: none;
}
TD.navButtons A:hover
{
width: 100%;
height: 100%;
align: center;
COLOR: blue;
BACKGROUND-COLOR: yellow;
text-decoration: none;
}
<table class="menu" align="center">
<tr>
<td class="navbuttons" colspan="3" >
<a href="#">ELink Information</a>
</td>
</tr>
<tr>
<td class="navbuttons" colspan="3" >
<a href="#">EoD Revaluation Rates</a>
</td>
</tr>
</table>