Geek Culture
Published in

Geek Culture

CSS Clear float and Pseudo Element

What is clear both in CSS and how to use pseudo element ::after to help

In the previous article, we already learnt how to use the float. Since all the boxes has already been taken out from the normal flow, the wrapper div only has the padding. The boxes no longer occupies the height of the div.

Photo by Ferenc Almasi on Unsplash

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ckmobile

Ckmobile

Teaching JavasScript, React, React Native, MongoDB and NodeJS https://linktr.ee/ckmobile