Last active
July 10, 2021 18:32
-
-
Save rzvl/f076fe2274deeedda79c7d6b515e4f6e to your computer and use it in GitHub Desktop.
The clearfix hack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.wrapper::after { | |
content: ""; | |
clear: both; | |
display: block; | |
} | |
/* The modern way of solving this problem is to use the value flow-root of the display property. */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
source: Floats (MDN)