Skip to content

Instantly share code, notes, and snippets.

@rzvl
Last active July 10, 2021 18:32
Show Gist options
  • Save rzvl/f076fe2274deeedda79c7d6b515e4f6e to your computer and use it in GitHub Desktop.
Save rzvl/f076fe2274deeedda79c7d6b515e4f6e to your computer and use it in GitHub Desktop.
The clearfix hack
.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. */
@rzvl
Copy link
Author

rzvl commented Jul 10, 2021

source: Floats (MDN)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment