Last active
April 1, 2018 20:40
-
-
Save ifamily/6779332 to your computer and use it in GitHub Desktop.
This CSS will fix problems caused by Genesis Column Classes of uneven height. Just add a div with the class name of clear-line to your code. Then add this to your .css file.
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
/* | |
Clear fix for column classes | |
---------------------------------------------------------------------------------------------------- */ | |
.clear-line:after { | |
content: "."; | |
display: block; | |
clear: both; | |
visibility: hidden; | |
line-height: 0; | |
height: 0; | |
} | |
.clear-line { | |
display: inline-block; | |
width: 100%; | |
} | |
html[xmlns] .clear-line { | |
display: block; | |
} | |
* html .clear-line { | |
height: 1%; | |
} |
Puuuuuurfect !
Thanks, it works perfectly.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks heaps for this. It worked perfectly. Just had to add
<div class="clear-line"></div>
in my page text code in the WordPress editor after the code for the Genesis columns.