View Full Version : whats the css code I would add to an externam style sheet (change the look of tables)


KeLs
04-08-2006, 04:46 AM
http://www.kels.makes.it

I want to change it so that under the bored/games/hangman section the table looks differnt, i also want to make it look like bored/games/guessnumber.

What code would i add my my external style sheet to make the boarders all the same thinkness/color and to change the backround.. ect?

Please hlep!

J to the izzosh
04-08-2006, 05:09 AM
To change the border of any element, you would use the CSS property "border". You would need to define the border for both the table itself and the table cells. To make all of the borders come together in the table, add the property "border-collapse:collapse" to the selector you're using for your main table. The property "background" can be used to se both an image and/or a colour for either the table's background or that of an individual table cell, or both.


table {
border:solid 1px black;
border-collapse:collapse;
background:rgb(255,255,255);
}

td {
border:solid 1px black;
}

KeLs
04-08-2006, 03:58 PM
wow- thanks so much!

KeLs
04-08-2006, 04:02 PM
one more question- after i added it to my style sheet- how com it isn't affecting those pages????!

J to the izzosh
04-09-2006, 04:01 AM
You're welcome.


Which pages? Is it not working on any, or just a few? Are those pages properly linked to your external style sheet?