Here's the CSS
.box {
background-color: #CCCCCC;
}
.box-title {
font-size: small;
font-weight: bold;
color: #000000;
background-image: url(/icons/bg.png);
background-repeat: repeat-x;
}
.box-content-container {
background-color: #FFFFFF;
}
a:link {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
text-decoration: none;
color: #000000;
}
a:active {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
text-decoration: none;
color: #000000;
}
a:hover {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
text-decoration: underline;
color: #000000;
}
a:visited {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
text-decoration: none;
color: #000000;
}
a.tag18:link {
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
}
a.tag18:hover {
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
text-decoration: underline;
}
a.tag18:visited {
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
}
a.tag18:active {
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
}
And the HTML
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="box">
<tr>
<th class="box-title-header" scope="col">Categories </th>
</tr>
<tr>
<td class="box-content-container">
<div align="center">
<a class="tag18" href="http://www.site.com">Category 1</a>
</div>
<p> </p>
</td>
</tr>
</table>
Q. Why does the font size not appear as 18px high, as defined in the CSS?
EDIT:
I'd like to create one CSS style for most hyperlinks. I believe this is achieved with a:link
For additional styles you can create .style1 ...
Question
Can a:link exist with a:style1? It seems a:link overrides the style.
Answer
a:link overrides any a.pseudo-class. For multiple styles use a:link, then additional hyperlink styles require ' .classname a:link ' This can be achieved in HTML with [ span class = 'classname' ] .