Last active
November 19, 2015 07:01
-
-
Save searleb/320d04926a030a5c34ab to your computer and use it in GitHub Desktop.
Webkit CSS Column Bug - border/padding gets removed from element
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
<ul> | |
<li>Lorem ipsum dolor sit amet.</li> | |
<li>Lorem ipsum dolor sit amet.</li> | |
<li>Lorem ipsum dolor sit amet.</li> | |
<li>Lorem ipsum dolor sit amet.</li> | |
<li>Lorem ipsum dolor sit amet.</li> | |
<li>Lorem ipsum dolor sit amet.</li> | |
</ul> |
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
ul{ | |
-webkit-column-count: 2; | |
-moz-column-count: 2; | |
column-count: 2; | |
-webkit-column-width: auto; | |
-moz-column-width: auto; | |
column-width: auto; | |
list-style: none; | |
padding-left: 0px; | |
li{ | |
border-bottom: 1px solid #eee; | |
padding: 15px 0px; | |
// if the two below are not added the border | |
// breaks away from the last <li> and appears at | |
// the top of the next column | |
overflow: auto; | |
height: 100%; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment