Forum Moderators: not2easy
<table border="0" bgcolor="#ffffff" cellpadding="2" cellspacing="3" width="100%">
<tr>
<td bgcolor="#cccccc">Section Heading</td>
</tr>
<tr>
<td align="left">Section Sub Heading</td>
</tr>
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><a href="">title</a><a href=""><img src=""></a></td>
<td>description</td>
</tr>
</table>
</td>
</tr>
</table>
So this is what I want to do:
I want to be able to override this html with inline CSS and customize the layout etc.
Should I wrap this entire section with <div class="table1"></div>?
Elements I want to change:
1. heading/sub heading: font face, color, size
2. parent table: background color, border
3. hyperlink color
4. image styles like border
I would really appreciate help on this!
<table id="table1">
<tr>
<td >Section Heading</td>
</tr>
<tr>
<td>Section Sub Heading</td>
</tr>
<tr>
<td>
<table>
<tr>
<td><a href="">title</a><a href=""><img src=""></a></td>
<td>description</td>
</tr>
</table>
</td>
</tr>
</table>
And your CSS:
table#table1 {
set your desired properties here
}
table#table1 table {
properties for nested table here
}
and so on. It's all just a matter of setting the classes and ID's and calling them in correctly. HTH!
Actually what I am doing is to have a default style for in my .css file, then I will override the default with inline style on some pages etc., that is why I am doing inline.
so is there any real advantage of converting my html to table-less CSS design (in terms of potential layout customizations?)
There's lots more, but converting from a table-based layout to CSS is always an excellent idea :)