Today I will show you how to clear a float in CSS, the better way!
Suppose you have a container, which has a border, or a background color. Inside of that div you have some text and maybe some images. You want to float the images to the left, however if you do that your elements will be going outside of your container.
We will fix that right now!
Comments