Tables

J

Jon Jervis

Just wondering whether or not I can change the alignment / colour etc of all
the individual cells within a table at once rather than adding "align /
color" tabs to every single one? I just want to <align="centre"> about 500
cells in one colour!!

Thanks for any help.

Jon.
 
E

Els

Jon said:
Just wondering whether or not I can change the alignment / colour etc of all
the individual cells within a table at once rather than adding "align /
color" tabs to every single one? I just want to <align="centre"> about 500
cells in one colour!!

Thanks for any help.

Jon.

HTML:

<table class="someclass">
<tr><td>...</td></tr>
<tr><td>...</td></tr>
<tr><td>...</td></tr>
...etc..
</table

CSS:

table.someclass td{
background-color:purple;
color:yellow;
text-align:center;
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top