PDA

View Full Version : Help me with colouring tables


alaios
01-19-2006, 11:57 PM
Hi i am creating a big table 5 rows 10 columns and i want color the table so it will be nice... For example the rows in this forum are nicely coloured so as the user can easily distinguish the lines.. So do u have anything in mind to suggest me... I need both your idead and the css technique in order to achieve that..
Thanx a lot have a nice day

Check attachemt plz to see how ugly my table now is

mark87
01-20-2006, 12:07 AM
Well if you wanted to say style it with alternate coloured backgrounds you could give each row a different class depending on it's colour. eg.

<tr class="a">...
<tr class="b">...

And use CSS like so -

tr.a { background: #EEE }
tr.b { background: #CCC }