Fiesta Fan Forums

Fiesta Fan Forums (http://www.fiestafan.com/forums/index.php)
-   M O S (http://www.fiestafan.com/forums/forumdisplay.php?f=25)
-   -   HTML Code (http://www.fiestafan.com/forums/showthread.php?t=27941)

Hessah 10-29-2010 04:18 AM

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

Hessah 10-29-2010 04:41 AM

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

Esen 11-01-2010 02:21 AM

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>

Hessah 11-01-2010 02:40 AM

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?

Esen 11-01-2010 02:45 AM

<!-- 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">

Hessah 11-01-2010 02:52 AM

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?

Hessah 11-01-2010 02:56 AM

Ohh got it!!!

Thanks heaps Esen!!!

Hraesvelg 11-01-2010 04:12 AM

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.

Hessah 11-01-2010 04:43 AM

=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.