Skip to content

Instantly share code, notes, and snippets.

@WhatLibrarian
Forked from jasonclark/booklist.css
Last active December 17, 2015 03:09
Show Gist options
  • Save WhatLibrarian/5541299 to your computer and use it in GitHub Desktop.
Save WhatLibrarian/5541299 to your computer and use it in GitHub Desktop.
This allows the book covers to be displayed horizontally instead of vertically.
<style type="text/css">
.items {display:table;list-style:none;margin:0;padding:0;border-spacing:5px;}
.items li {display:table-cell;-webkit-border-radius:10px;-moz-border-radius:10px;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