Last active
May 14, 2018 19:48
-
-
Save khattab88/05ab78404b0aecdcba6b50e0a07bd4d4 to your computer and use it in GitHub Desktop.
how to fix float side effects using clearfix
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
apply this css class to the PARENT of floated elements | |
.clearfix { | |
overflow: auto; | |
} | |
.clearfix::after { | |
content: ""; | |
display: table; | |
clear: both; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment