I am dealing with a container div containing two child divs, each with the float: right
property.
The structure of my code is as follows:
<div class="container"> .container {width: 50%}
<div class="a"></div> .a, .b { float: right }
<div class="b"></div>
</div>
According to semantics, I expect to see [ [A][B]]
on my page, but it actually displays as
[ [B][A]]
While I could simply rearrange the order of A and B in the HTML to achieve the desired display, this workaround does not align with semantic best practices. What would be the correct approach to resolve this issue?