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.

#140534
Paulie_D
Member

`.flat` (as you have used it) will define the size of the element.

`.red` will define the background color

.`flat.blue` defines nothing in and of itself except it only targets elements with **both** classes.

http://codepen.io/Paulie-D/pen/yHAaj

In the example above, try deleting the bg color from `.flat.blue`…only the `.flat` class will apply because no `.blue` class has been defined.