Code below. It is super simple. Add and remove the p selector and watch what happens.
Can some one explain to me *why* adding overflow auto to the p makes it not wrap under the img?
I understand what is happening, not the why.
If the answer says anything about float clearing, explain how that works in this case:
- I have typically used float clearing to expand parent boxes to enclose their children.
- Why doesn’t the p clear the img entirely?
- Why does it look like it does?
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce magna velit, feugiat. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce magna velit, feugiat.