timstring;11021019 wrote:
or, is the border reserved for tables and elements?
No, border applies to all elements.
jeepin81;11021035 wrote:
You want style your table data<td> tag not your table row<tr>
Since that would depend entirely on where he wants the border to appear. For example, if the goal is to have borders between rows and on the side of each row, thus giving borders around the table and between the rows, tr { border: 1px solid black; } would be the easiest way of achieving this. Do note that putting the border on td elements would require a border-left on the first td of each row, a border-right on the last of each row and border bottom of all tds of the last row to achieve the same thing as a tr border.
Border for tr requires border-collapse: collapse to show. Probably due to the fact that there would otherwise be no unambigous placement for the border.
jeepin81;11021035 wrote:
Better yet.. get rid of the table and use a div.
Unless of course it's tabular data.