Trying to add a gray rectangle (indicated by the red circle) at both the top and bottom of a div that contains thumbnails. This div may have 2 or 3 rows of thumbnails.
Image:
Current code snippet:
.jq_thumbnails {
background: url("/site_media/static/coffee_small_top.png") top left no-repeat;
overflow: auto;
height: 100%;
}
Is there an easy way to achieve this effect? I was thinking of using an ifequal tag to check the length of the thumbnail list and adjust the background picture accordingly, but wondering if it can be done with just HTML/CSS?