Home › Forums › CSS › Change colour but keeps same styles. › Re: Change colour but keeps same styles.
June 26, 2013 at 10:41 am
#140534
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.