Tell us what’s happening:
I learned that ‘float’ can make the element move left and right. But as I know, ‘position’ also can do that. So what is the difference between ‘float’ and ‘position’.
If by position you means position:absolute
the main difference is that
- float is still part of the flow
- absolute elements are not part of the flow, this means that other element (like siblings) will behave as this element “don’t exists”