Hey everyone.
I haven't been on DaniWeb in a while.
.x-accordion-header {
width: 100%;
color: #ffffff;
background-image: -webkit-gradient(linear,0% 0,0% 100%,color-stop(0%,#[B]96A9C0[/B]),color-stop(2%,#[B]5A7596[/B]),color-stop(100%,#[B]394B5F[/B]));
}
Is it possible to include a 'variable' or 'property' in css?
The reason why I am asking is because I want to change the background colour of the css header for multiple object types.
Say I checked for the type either via PHP or Javascript with a case statement or an IF ELSE ... I would want to be able to assign a certain colour based on the object type to the headers css.
Any hints or tips or suggestions would be appreciated.
Many Thanks
:-/