Skip to content

Instantly share code, notes, and snippets.

@nrrrdcore
Created August 20, 2012 23:22
Show Gist options
  • Save nrrrdcore/3409171 to your computer and use it in GitHub Desktop.
Save nrrrdcore/3409171 to your computer and use it in GitHub Desktop.
Simple Fix for the Webkit Clipped Border-Radius Bug
.list-container {
border-radius: 5px;
border: 1px solid #C5C5C5;
box-shadow: inset 0 1px 0 #FFF;
}
ol {
border: 1px solid transparent;
}
ol li {
margin: 0;
padding: 12px;
border: none;
border-bottom: 1px solid #CACACA;
box-shadow: inset 0 0 3px rgba(255,255,255,.3);
}
ol li:last-child {
border-bottom: none;
}
<div class="list-container">
<ol>
<li>Thing One</li>
<li>Thing Two</li>
<li>Thing Red</li>
<li>Thing Blue</li>
</ol>
</div>
@nrrrdcore
Copy link
Author

@fabianperez hack all of the things, always.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment