Advertisement
Guest User

min booru cssfix

a guest
Mar 2nd, 2017
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.76 KB | None | 0 0
  1. /* The existing CSS rule (that should be replaced) looks like this. It should be on line 270 of default.css */
  2. span.thumb {
  3.   height: 180px;
  4.   width: 180px;
  5.   display: inline-block;
  6.   float: left;
  7.   text-align: center;
  8.   vertical-align: middle;
  9. }
  10.  
  11. /* Here is a fixed CSS rule for span.thumb. Delete the old one and replace it with this. */
  12. span.thumb {
  13.   padding: 0px 10px 10px 0px;
  14.   display: inline-block;
  15.   content-justify: center;
  16.   float: left;
  17.   height: auto;
  18.   width: auto;
  19. }
  20.  
  21. /* You can change "width: auto" -> "width: 256px" for it to use a grid layout.
  22.  
  23.    However, this looks very spaced out because we have to account for images up to 256x256,
  24.      but most are around 128x256. This means we have to waste a lot of space on whitespace. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement