# CSS: Sharing properties of classes (or easy DW way to add two classes)

**URL:** https://forum.kirupa.com/t/css-sharing-properties-of-classes-or-easy-dw-way-to-add-two-classes/130679
**Category:** Uncategorized
**Created:** [December 7, 2004, 3:23pm UTC](https://forum.kirupa.com/t/css-sharing-properties-of-classes-or-easy-dw-way-to-add-two-classes/130679 "2004-12-07T15:23:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![senocular](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/senocular/32/7217_2.png) [@senocular](https://forum.kirupa.com/u/senocular)
#### Post date: [December 7, 2004, 3:23pm UTC](https://forum.kirupa.com/t/css-sharing-properties-of-classes-or-easy-dw-way-to-add-two-classes/130679/1 "2004-12-07T15:23:36Z")

</div>

From what I know of CSS, I dont know if there’s a way to combine properties of 2 or more classes into another single class without repeating those properties. Ex:

```auto
.foo {
	font-family: "Courier New", Courier, mono;
}
.bar{
	font-size: 10pt;
	
}
.foobar{
	inherit-class: foo;
	inherit-class: bar;
	background-color: #EEE;
}

```

where “inherit-class: foo;” and “inherit-class: bar;” would represent the inclusion of those properties in foo and those properties in bar. That obviously isnt correct syntax but is similar to what I would expect based on what I want to get. Is that possible? If so, how?

If not, thats fine. I can (fairly) easily add more than one class to a tag:

```auto
&lt;p class="foo bar foobar">Text.&lt;/p>

```

However, I like using Dreamweaver’s little drop-down menu that shows style previews to add my styles to selections and whatnot 😏 That little drop-down, however, only allows one style at a time. Actually, you can add more than one style to a selection using shift with that menu, but it doesn’t keep them in the same tag, it adds another tag to facilitate the new style which I would rather not have. Idealy, I would like my combined style. Otherwise I can settle for what I’m doing now and manually adding multiple styles by hand.

Just cur. :sen:
