I have a web page with an equivalent of the following html, and the corresponding CSS:
<div class="father">
<div class="divson"></div>
<a class="ason"></a>
</div>
.father {position:relative}
.father div {position:absolute}
.father a {position:relative}
Because 'divson' has position:absolute, I'd expect it to be always placed relatively to 'father' (because this one is positioned as well). Although, 'divson' still moves elsewhere when I reorder the html as follows:
<div class="father">
<a class="ason"></a>
<div class="divson"></div>
</div>
How is it possible that a div with position:absolute still depends on the html order? What could be a cause that I wouldn't have thought of?
Thanks