# \[CSS\] Need help understanding a style definition using commas spaces and \[renamed\]

**URL:** <https://forum.kirupa.com/t/css-need-help-understanding-a-style-definition-using-commas-spaces-and-renamed/166871>\
**Category:** web dev\
**Created:** [October 23, 2005, 3:28pm UTC](https://forum.kirupa.com/t/css-need-help-understanding-a-style-definition-using-commas-spaces-and-renamed/166871 "2005-10-23T15:28:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thats\_all\_folks](https://avatars.discourse-cdn.com/v4/letter/t/e0b2c6/32.png) [@thats\_all\_folks](https://forum.kirupa.com/u/thats_all_folks)\
**Post date:** [October 23, 2005, 3:28pm UTC](https://forum.kirupa.com/t/css-need-help-understanding-a-style-definition-using-commas-spaces-and-renamed/166871/1 "2005-10-23T15:28:55Z")

</div>

I’m new to CSS and was wondering if anyone could explain this:

```auto
.anchorDropMenu, .anchorDropMenu .dropMenu2 {
	background-color: #CCC;
	border-bottom: 1px solid #999;
	border-right: 1px solid #AAA;
	border-left: none;
	width: 166px;
}

```

Is this saying that all three will inherit these property’s, so I could have  
style=".anchorDropMenu" on one function and use the other two on another. Or is is this saying that .anchorDropMenu .dropMenu2 are the child of .anchorDropMenu?

Cheers
