xxxxxxxxxx
Its probably due to flex box. Float wont work if the parent is an flex box
.main { display: flex; }
.child {margin-left: auto;}
xxxxxxxxxx
You're probably in a flex box. THis will make it work in that case.
.main { display: flex; }
.child {margin-left: auto;}