# CSS style based on another style

**URL:** <https://forum.kirupa.com/t/css-style-based-on-another-style/282369>\
**Category:** web dev\
**Created:** [February 20, 2009, 9:47pm UTC](https://forum.kirupa.com/t/css-style-based-on-another-style/282369 "2009-02-20T21:47:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![graylensman](https://avatars.discourse-cdn.com/v4/letter/g/5f9b8f/32.png) [@graylensman](https://forum.kirupa.com/u/graylensman)\
**Post date:** [February 20, 2009, 9:47pm UTC](https://forum.kirupa.com/t/css-style-based-on-another-style/282369/1 "2009-02-20T21:47:59Z")

</div>

Coming from the print side of things…

Using, say, InDesign or QuarkXPress, I can create a style for body copy. Then I can create a style for headers based on body copy, changing only the point size of the font. I make a style for captions, based on body copy, changing only the color.

Later, when I decide I really want a different typeface, I can change that in the body copy style, and that automatically propagates throughout the other styles in the document.

Can this be done with CSS?
