Yes you can, you have the ordinary tags like cellpadding, cellspacing, border, height an all thoose, but there are some more, I think this is all of them:
For <table>
align, bgcolor, cellpadding, cellspacing, frame, border, rules. summary, width
For <tr>
align, bgcolor, char, charoff, valign
For <td>
abbr, align, axis, bgcolor, char, charoff, colspan, headers, height, nowrap, rowspan, scope, valign, width
You can also add styles for the text in the td's or in the table. Here's an example.
To style a table you can use this in your CSS-file:
- Code: Select all
.class1 {
width: 400px;
border: 0;
}
.class2 {
width: 40%;
font-size: 20px;
}
.class3 {
width: 60%;
}
And then just add a class to the table, tr or td:
- Code: Select all
<table class="class1">
<tr>
<td class="class2">
Text Here!
</td>
<td class="class3">
Text Here!
</td>
</tr>
</table>