I want to clarify the logic behind inheritance.
<div class="classics">
<h2>Mega</h2>
<div class="tild">
<div class="color">
<div class="medium">
<h1>Hello</h1>
</div>
</div>
</div>
</div>
If I give .classics
the style display:inline-block
will that apply also apply to the h2
element?
What about font-color?
If I give .tild
the styledisplay:flex
does that mean .color
will also inherit that value?