This appears to be an issue for lost of people. But I haven’t been able to find a solution.
I want the image captions on a site I’m developing for an acquaintance to contain no borders, margins or padding around them, with exception to the caption text. Something in WordPress is adding 10 pixels to the div surrounding the caption. This is not only visible in the image but it’s easily seen in the output code. there is an extra 10 pixels on the width. The weird thing is it doesn’t affect the top and bottom of the div. I’ve visited a lot of articles about this issue and tried countless permutation. The closest I got was a bit of code add to the function template, but this messed other things up and I don’t know enough to fix that issue.
Resources bellow which I will keep live for a while.