Last active
March 29, 2018 17:58
-
-
Save stanosmith/7c356bd83a516f464597de469190ccef to your computer and use it in GitHub Desktop.
The Clearfix: Force an Element To Self-Clear its Children
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
/* All credit to Chris Coyier - via: https://css-tricks.com/snippets/css/clear-fix */ | |
.selector:after { | |
content: ""; | |
display: table; | |
clear: both; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment