Skip to content

Instantly share code, notes, and snippets.

@searleb
Last active November 19, 2015 07:01
Show Gist options
  • Save searleb/320d04926a030a5c34ab to your computer and use it in GitHub Desktop.
Save searleb/320d04926a030a5c34ab to your computer and use it in GitHub Desktop.
Webkit CSS Column Bug - border/padding gets removed from element
<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>
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