Created
April 6, 2012 21:06
-
-
Save alecperkins/2322939 to your computer and use it in GitHub Desktop.
+postclear Compass mixin
This file contains hidden or 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
// Adds a pseudo element :after that clears floats, preventing them from riding | |
// up into the element, while still allowing the element to wrap around floats | |
// before it. This is useful for ensuring floating elements remain in place, | |
// vertically, when the non-floating elements are too short to push them down. | |
=postclear($side: both) | |
&:after | |
content: " " | |
display: block | |
clear: $side |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment