Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Change colour but keeps same styles. Re: Change colour but keeps same styles.

#140529
braadd
Participant

so if I have it like this

.flat.red {
background: #bf3f3f;
}

.flat.pink {
background: #bf3fb4;
}

.flat.purple {
background: #963fbf;
}

.flat.blue {
background: #3f3fbf;
}

is there a way so I only have .flat in once and then it applys to the rest so it is not too much repeating