Yes, the CSS and HTML specifications for the <TD> attributes are different. Generally, in IE at least, the CSS will take precedence over the HTML.
So for example, consider the following code:
<STYLE>
td {border: 1px;}
</STYLE>
<TD border=0>some text</TD>
That TD tag should have a border on it, as specified by the CSS code. To remove it, you can specify the style of the td tag like this:
<STYLE>
td {border: 1px;}
</STYLE>
<TD border=0 style="border: 0px">some text</TD>
That example would not have a border because the style attribute will override the general style sheet for the page.
For your situation, if you did not have that style sheet on top, by default your TD tag would have no border in HTML.
Emblue
Main Topics
Browse All Topics





by: Tacobell777Posted on 2004-04-29 at 21:16:15ID: 10956102
You'd be better of using contexual styles, example:
<style>
#myTest td
{
border: 1px solid red;
}
</style>
<div id="myTest">
<table>
<tr>
<td><img src="<?echo $images;?>top_pic1.gif" border="0"></td>
<td><img src="<?echo $images;?>top_pic2.gif" border="0"></td>
<td><img src="<?echo $images;?>top_pic3.gif" border="0"></td>
</tr>
</table>
</div>
border: 1px 0 1px 0;
which represents
border: top right bottom left;
so if you do not want a border at the top its
border: 0 1px 1px 1px;