Skip to content

Instantly share code, notes, and snippets.

@jasonclark
Last active May 6, 2019 05:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save jasonclark/2585089 to your computer and use it in GitHub Desktop.
Save jasonclark/2585089 to your computer and use it in GitHub Desktop.
booklist CSS - display as table row
<style type="text/css">
.items {display:table;list-style:none;margin:0;padding:0;border-spacing:5px;}
.items li {display:table-row;border-radius:10px;border:1px solid #ccc;padding:5px;margin:0 0 10px 0;}
.items li img {display:table-cell;vertical-align:top;}
.items li span.meta {display:table-cell;vertical-align:top;margin:0;padding:0 0 0 5px;}
.items li {margin:0 0 5px 0;}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment