I am using css to make a roll-over effect on table cells on my page.
I have inputted the css into my external stylesheet an dhave the table code and it all works. But i just CANT make the text aligned left.
here is the code for the webpage...
CODE
<div class="menu">
<table summary="" cellpadding="1" cellspacing="1" class="menu">
<tr>
<td>
<a href="#" onfocus="this.blur()"> Link 1</a>
</td>
</tr>
</table>
</div>
<table summary="" cellpadding="1" cellspacing="1" class="menu">
<tr>
<td>
<a href="#" onfocus="this.blur()"> Link 1</a>
</td>
</tr>
</table>
</div>
and here is the code for the stylesheet...
CODE
div.menu a {
color: #ffffff;
background: #333333;
text-decoration: none;
font-size:10px;
font-family: verdana;
padding: 2px 25px;
}
div.menu a:link {
color: #ffffff;
background: #333333;
text-decoration: none;
}
div.menu a:active {
color: #ffffff;
background: #333333;
text-decoration: none;
}
div.menu a:visited {
color: #ffffff;
background: #333333;
text-decoration: none;
}
div.menu a:hover {
color: #ffffff;
background: #000000;
text-decoration: none;
}
color: #ffffff;
background: #333333;
text-decoration: none;
font-size:10px;
font-family: verdana;
padding: 2px 25px;
}
div.menu a:link {
color: #ffffff;
background: #333333;
text-decoration: none;
}
div.menu a:active {
color: #ffffff;
background: #333333;
text-decoration: none;
}
div.menu a:visited {
color: #ffffff;
background: #333333;
text-decoration: none;
}
div.menu a:hover {
color: #ffffff;
background: #000000;
text-decoration: none;
}