-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,899
  • 3
  • 28
  • 43

2 Answers2

2
img {
display:block;
}

should fix it

Paulie_D
  • 107,962
  • 13
  • 142
  • 161
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,960
  • 4
  • 33
  • 40
Rod
  • 1