Click to See Complete Forum and Search --> : i'm not sure this is possible but, specifying font size colour etc within a table?


sciguyryan
09-06-2003, 04:52 AM
hi all,


is it possible can anyone provide the css code to do the folowing...
1) the table atrobutes such as BORDER="2" WIDTH="90%" CELLSPACING="5" CELLPADDING="8" BGCOLOR="lightblue" are always the same and...
2) the font atributes within the tables always stay as FONT COLOR="blue" SIZE="4"


if you ncould provide the code for this i would be most greatfull.
thankyou in advnce.

Mr J
09-06-2003, 07:34 AM
The only one not included in the CSS atributes is cellspacing


<style>
table{border:2px solid red; color:blue;font-size:12px;width:90%;background-color:lightblue}
td{border:2px solid red;padding:8px;}
</style>


<table>
<tr><td>Table</td><td>Table</td></tr>
<tr><td>Table</td><td>Table</td></tr>
</table>

<P><table>
<tr><td>Table</td><td>Table</td></tr>
<tr><td>Table</td><td>Table</td></tr>
</table>

sciguyryan
09-06-2003, 07:37 AM
hi,


thanks mrJ!


umm.. what about aligning the text and the tabe to the center?......

chris9902
09-06-2003, 09:29 AM
add <center> before the <table> tag and </center> after the </table> tag.


<center>
<table>
<tr><td>Table</td><td>Table</td></tr>
<tr><td>Table</td><td>Table</td></tr>
</table>
</center>