![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
I have a header style defined in my css as follows: h1 { font-family: Arial, sans-serif; font-size: 12px; font-weight:bold; color: #FFFFFF; margin: 5px 0px 3px 0px; padding: 0px 0px 0px 5px; background: #6DCF46; background-repeat: repeat-x; } I also need to create 7-8 additional styles, the only difference being the bg color. What is the best way to do that in css? In other words, it is too inefficient to create 9 duplicate styles since the only difference is the bg color; also, there are only <h1> - <h6> styles available and I need to reference ~9. Any suggestions? |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
I also need to create 7-8 additional styles, the only difference being the bg color. What is the best way to do that in css? In other words, it is too inefficient to create 9 duplicate styles since the only difference is the bg color; also, there are only <h1> - <h6> styles available and I need to reference ~9. Any suggestions? |
![]() |
| Thread Tools | |
| Display Modes | |
| |