css float not work code example Example: float is not working float wont work if the parent is an flex box so change it to block