Image floating
With CSS properties, we can make an image float by using text flows. In other words, the float
property aligns the image to the left or right of its container or another floating box, allowing text and inline elements to flow around it.
What's wrong with the align
property? Well, there's no such thing! 🤷🏽♂️ The text-align
property, as opposed to the float
attribute, doesn't affect the image but rather the content around it.