How to float two elements to the right maintaining the same order visually and semantically?

前端 未结 4 643
傲寒
傲寒 2021-02-07 11:11

How to float two elements within a wrapper element to the right keeping the same order of the elements visually and semantically?


Simon

Says

http://jsbin.com/eravan/6/edit

The problem with this approach is the redundant auxiliary element itself.

Messing with the semantics


Says

Simon

http://jsbin.com/eravan/9/edit

This is the worst solution and, unfortunately, the most common as well (Ali Bassam comment directly below proves it).

Neither of these is the correct answer.

提交回复
热议问题