2 цвята в таблица - линкове

Gamerz

Registered
Как да направя половината линкове в таблицата ми да са един цвят другите да са друг цвят?
 
примерно..

Код:
<html>
<head>
<style>
.var1 a
{
background: #333;
color: white;
text-decoration: none;
}
.var1 a:visited
{
background: pink;
color: black;
text-decoration: none;
}
.var1 a:hover
{
background: #00ff00;
color: blue;
text-decoration: none;
}

.var2 a
{
background: blue;
color: white;
text-decoration: none;
}
.var2 a:visited
{
background: yellow;
color: white;
text-decoration: none;
}
.var2 a:hover
{
background: red;
color: white;
text-decoration: none;
}</style>
</head>
<body>
<table>
<tr>
<td class="var1"><a href="#">вариант 1</a><td>
<td class="var2"><a href="#">вариант 2</a><td>
</tr>
</table>

</div>
</body>
</html>
 
Ем да както каза @dELux_nike , едната ти половина са с един клас, а другата половина с друг :)

И след това вече си наместваш класовете в цсс файла
 

Back
Горе