I've a simple css file:
.center {
margin-left: auto;
margin-right: auto;
width: 33%;
}
and simple HTML with few divs:
<div class="center">
<div> some text here </div>
</div>
Now I was expecting the inner div to inherit the margin and width properties from parent but that didn't happen. I'm trying to re-learn CSS in a proper way so interested in these kinds of seemingly minor but important things. Thanks