|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
CSS - Inherited attributes
This is probably a pretty basic question, but I haven't seen it mentioned in any of the CSS tutorials I've read.
If I have table.base td { width: 50%; border: 1px solid black; } and this is my base style that I want for all of my tables tds. Now I want to make multiple children table tds styles that all include the previous styles included in table.base. So instead of writing table.child1 td { width: 50%; border: 1px solid black; background-color: #999999; } I only need to add the background-color. Thanks, Anthony |
|
#2
|
|||
|
|||
|
Try background-color:#CC0033;
try background-color:#CC0033;
Find the syntax in a.test10:hover .test10{font-family:Verdana;font-size:10px;color:#33FF66; font-weight:800; text-decoration:none;} a.test10:hover{font-family:Verdana;font-size:10px;color:white; font-weight:800;background-color:#CC0033;text-decoration:underline;} .blu01{font-family:arial; font-size:12px;color:#3331BB;background-color:#CC0033;font-weight:600} .blu12{font-family:tahoma; font-size:12px;color:#3331BB;text-decoration:none;} |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > CSS - Inherited attributes |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|