Wpis z mikrobloga

Mam takie pytanko może mądre może głupie nie wiem ( ͡° ʖ̯ ͡°)
jestem początkujący, CSS:

cośtam: drugiecośtam

w CSS ustawiam właściwości dla .elem i nie działaja dla spana w środku, wydawało mi się że dzieci dziedziczą właściwości rodziców?

#css
  • 27
poniżej cały plik css i html, span w spanie.elem nie ma w ogole formatowania :/

*{
margin: 0;
padding: 0;
font-size: 10px;
}

main{
display: block;
margin: 10px auto auto 10%;
width: 80%;
}
.elem{
display: inline-block;
height: 30px;
font-size: 2rem;
margin: 0 10px;
}

Sprawdź
costam: COSTAM
@panczaber:
body
Applies style properties to body element.
Elements within body may inherit the property values. Some properties default to 'inherit'.
Style declarations that match an element within body can override the inherited style.
**The Universal Selector * (all elements)**
Applies style properties to all individual elements.
Replaces inherited style properties, and default 'initial values'. Blocks inheritance.
Other, more specific css selectors that match an element will replace the style properties