Inspired by Mr G here's a little look at making multicoloured tables.
If you're new it might be an idea to read the previous posts, when you hear THIS noise *BING* it's time to turn the page.
Here we look at how to make this...
| Top Left | Top Right |
| Bottom Left | Bottom Right |
You KNOW you want to... Now, heres the code we used for the previous table with []s replacing the triangle brackets:
[table width="200" border="1" align="center" cellpadding="3" cellspacing="3" bgcolor="#cccccc"]
[tr]
[td]top left[/td]
[td]top right[/td]
[/tr]
[tr]
[td]bottom left[/td]
[td]bottom right[/td]
[/tr]
[/table]
To colour a row or individual cells we only need to add one thing, the colour in one of two places.
To colour an entire row add it after the tr:
[tr bgcolor="#0000FF"]
[td]top left[/td]
[td]top right[/td]
[/tr]
To colour an individual cell, place the code in the td area:
[tr]
[td bgcolor="#0000FF"]top left[/td]
[td]top right[/td]
[/tr]
So the code for our multicoloured table is:
[table width="200" border="1" align="center" cellpadding="3" cellspacing="3" bgcolor="#cccccc"]
[tr]
[td bgcolor="#0000FF"]Top Left[/td]
[td bgcolor="#FF0000"]Top Right[/td]
[/tr]
[tr]
[td bgcolor="#FFFF00"]Bottom Left[/td]
[td bgcolor="#00FF00"]Bottom Right[/td]
[/tr]
[/table]
Gawd I hope that makes sense...
