Hello, so a problem that i encountered on my website and then also on a another site ( which is made following the tutorial) is bugging me.
The space or padding / margin I'm talking about you can see on the picture:
Picture of it
Here is the website so you can check out the code/css and tell me where the problem is.
So what is causing that margin or padding below the picture ?
It has to do with baseline alignment of the image, either make the image a block element or set vertical-align to top. So you need only one of the above examples, not both.
Hello, so a problem that i encountered on my website and then also on a another site ( which is made following the tutorial) is bugging me.
The space or padding / margin I'm talking about you can see on the picture: Picture of it Here is the website so you can check out the code/css and tell me where the problem is.
So what is causing that margin or padding below the picture ?
It has to do with baseline alignment of the image, either make the image a block element or set vertical-align to top. So you need only one of the above examples, not both.
I also got rid of the space by adjusting the link around the image, but I believe the solution above is more elegant. regardless, here's the code:
That "space" you see is because of the above code. It's inserting an image.
Edit: I agree with CrocoDillon"s solution :)
And all that time i was doing this: .portfolio-item a{ display:block; } instead of this at the top
Thank you, saved me from this mystery :)