Skip to content

Instantly share code, notes, and snippets.

@matthewcopeland
Created August 2, 2012 23:38
Show Gist options
  • Save matthewcopeland/3242065 to your computer and use it in GitHub Desktop.
Save matthewcopeland/3242065 to your computer and use it in GitHub Desktop.
Beveled list
ul.beveled {
background-color: #efefef; /* any color darker than white */
list-style-type: none;
margin: 0;
}
ul.beveled li:not(:first-of-type) {
border-top: 1px solid rgba(255,255,255, 0.2;
}
ul.beveled li:not(:last-of-type) {
border-bottom: 1px solid rgba(0,0,0, .2);
}
<ul class="beveled">
<li>List item
<li>List item
<li>List item
<li>List item
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment