I'm having trouble with TD widths. They seem to be being ignored. I have some code like this:
<table align="center">
<tr>
<td align="center"><img src="../images/spacer.gif" width="1" height="5" alt="" class="bg-spacer" /></td>
</tr>
<tr>
<td valign="top" class="text-msg-info">
This is a message.
</td>
</tr>
<tr>
<td align="center"><img src="../images/spacer.gif" width="1" height="5" alt="" class="bg-spacer" /></td>
</tr>
</table>
and the css for text-msg-info is:
.text-msg-info {
background-color : #FFEBCB;
border : 1px solid #F98537;
color : #C00000;
font-style : italic;
padding : 5px;
text-align : center;
width : 80%;
}
but the TD is always the full width of the table instead of 80% of the table's width.
Could anyone suggest how I could get this working, please?
Debbie