-3

So here's my problem, there's a small white space showing up under the pictures on my tumblr, but the space only shows up under photosets, not under photos.

I have on my CSS:

#post{padding:10px;}
#post img{display:block;}

And then on my html:

{block:Posts}
<div id="post">
{block:Photo}<img src="{PhotoURL-500}"/>{/block:Photo}
{block:Photoset}{Photoset-500}{/block:Photoset}
</div>
{/block:Posts}

But the photoset adds a 3px space under the images, turning the padding to 13px for no reason. Can someone help me figure out this?

mikedidthis
  • 4,868
  • 3
  • 27
  • 43

2 Answers2

2
img {
display:block;
}

should fix it

Paulie_D
  • 102,164
  • 10
  • 117
  • 144
0
.post{line-height:0;}

I had the same issue and this solved it. Basically, the parent of the img tag needs to have the line-height set to 0.

TechWisdom
  • 3,386
  • 4
  • 32
  • 39
Rod
  • 1