I have the following code:
<table class="top">
<tr>
<td>
<table class="errMsg"><tr><td>Required field must not be blank </td></tr></table>
<td/>
<tr/>
</table>
I am trying to style to the error message but the "top" style keeps applying:
.top td {
color:black;
}
.errmsg td {
color:red;
}
The error message comes out black...how can I fix this? Not sure if this matters but when I take out the dtd it works fine but it messes up the positioning.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">