I'll assume you have the following
HTML
<table class="outer-table">
<tr>
<td>
<table class="inner-table">
<tr>
<td>
I'm some content!
</td>
</tr>
</table>
</td>
</tr>
</table>
CSS - Without class/ID
table { border: 1px solid black; }
table tr td table { border: 1px solid green; }
Sometimes you can get away with:
table { border: 1px solid black; }
table table { border: 1px solid green; }
CSS - With Class/ID
A little note with Classes and IDs. Classes are something that can be applied to as many elements as you desire and carry the styling specified. IDs should only be used for one element, as this is an identification to that element. That means if you have two nested tables, you need to give that second table a new unique ID.
ID's are shown as # in CSS. So if you just want to use it for the specific ID, it will be:
#outer-table { /* Outer table Style */ }
#inner-table { /* Inner table Style */ }
Using the class (as the example shows) in CSS, is a period. If you use the period without specifying the element, it will be used for all elements that have a class of the same name, so it's best to specify what element you want it attached to.
table.outer-table { /* Outer table Style */ }
table.inner-table { /* Inner table Style */ }
<div>'s instead of nested tables. It's the proper way layouts are done now.table {/*rules*/}andtable table {/*other overriding rules*/}that's how it's done?div.outer > div.row > div.cell > div.inner > div.row > div.cellinstead oftable.outer > tr > td > table.inner > tr > td.