Skip to content

Instantly share code, notes, and snippets.

@jeonghwan-kim
Last active December 25, 2015 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeonghwan-kim/6947439 to your computer and use it in GitHub Desktop.
Save jeonghwan-kim/6947439 to your computer and use it in GitHub Desktop.
clear float attribute by :after slector
.foo {
float: left;
}
.foo:after {
content: "";
display:block;
clear:both;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment