HTML Code
This is probably another Hraes question..
I've got a table in a website.. and I want to change the table colour and I've got this code: <table border="1" cellspacing="0" cellpadding="2" bordercolor="#f9c24f"> That only made the box around the table that colour.. how do I make the lines inside the tables too the same colour? At the moment it looks like this, I wanna get ride of the grayish/black shadows... http://i404.photobucket.com/albums/p...derExample.png |
I realise that's firefox's way of rendering my table..
It looks so much better in chrome! http://i404.photobucket.com/albums/p...mpleChrome.png |
If you insert this into the <head></head> section
<style> table, td {border: solid 1px #f9c24f} </style> It should fix it firefox if you haven't already. It will affect all the tables in that page though. You can apply it to certain parts with a class name. Example: <style> .nameoftable {border: solid 1px #f9c24f; } </style> then in the table's code, you need to add <table class="nameoftable"> <tr> <td class="nameoftable"> </td> </tr> </table> |
That's Esen~
I've checked and this page doesnt have a head section.. O_O I tried adding the head / style anyway,but after I saved it the head/style section disappeared and turn into <!-- table, td {border: solid 1px #f9c24f} --> but didn't change the line colours... Does that look like anything you're familiar with? |
<!-- means it's a line that won't show, except in the code, haha.
Try this then. <table cellspacing="0" cellpadding="0" style="border: solid 1px #f9c24f"> <td style="border: solid 1px #f9c24f"> |
cool that looks like it's about to work..
except I've already got <td style="text-align: center;"> what's the correct way to incoporate the two codes in td style? |
Ohh got it!!!
Thanks heaps Esen!!! |
Good call. I looked at this thread the other night right before I went to bed and was too tired to think about it, then forgot about following it up.
|
=D yeah when I got no replies I thought it was too hard and thought I'd have to give up and let my website burn my eyes with the ugly borders xD
|
All times are GMT. The time now is 09:45 AM. |
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.