Posted by Bill_W_Stephens on 03/18/06 18:24
Is there a way to simplify similar CSS class definitions. Here
td.data_Dark and td.data_Light share common atributes that are
different from td. See below.
Is there a way to say td.data_Light is like td.data_Dark, except for
background-color.
Also is there a way to define a color code as a variable (eg:
myBannerColor = "C8D7E3"), so when the client wants to change the
colour scheme, I only have to make one CSS change instead of dozens.
td {
background-color:red;
border-bottom:5px solid blue;
padding-left:1px;
}
td.data_Dark{
background-color:C8D7E3;
border-bottom:1px solid white;
padding-left:4px;
}
td.data_Light{
background-color: DBE8F9;
border-bottom:1px solid white;
padding-left:4px;
}
Navigation:
[Reply to this message]
|