<?xml version="1.0" encoding="utf-8"?>

Image floating

Image floating Bad Practice
Image floating Best Practice

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.

Improve your UX & Product skills with interactive courses that actually work