View Full Version : external style sheet


netaholic
03-25-2006, 11:42 PM
in an external style sheet, how do i denote the following:
I want all divs to have 1px black solid border, and have a background color of #XXXXXX

I want all tables to have 1px black border, and have a backgroung color of #YYYYYY

thanks!

HeLpM3
03-26-2006, 02:26 AM
table
{
border:1px #000000 solid;
background-color:#xxxxxx;
}

div
{
border:1px #000000 solid;
background-color:#xxxxxx;
}

netaholic
03-26-2006, 02:33 AM
for the able one, don't i have to do soemthing like
table,td,tr{
or am i just imagining things

Marta
03-26-2006, 02:50 AM
maybe...do you want the cells to have that border too? If the code HelpM3 posted doesn't work how you want, try that....

HeLpM3
03-26-2006, 02:58 AM
:confused: Well you have table, tr, td well that will be the same as above but if you want like all tables to have black backgrounds and white td you can use a sperate tag :)

like this
td{
background-color:#xxxxxx;
border:1px #ffffff solid;
tr{background-color:#xxxxxx;
border:1px #ffffff solid;