I am trying to style my caption to have a 3px padding on the left, right and top. Here's my code:
.wp-caption{ padding-top: 3px;text-align:center; background-color: #EFEFED; border: 1px solid #D0D0CE; margin-top: 15px; margin-bottom: 15px; }
.wp-caption img{ margin:0 auto; padding: 0; border: 0 none; }
.wp-caption-text{ margin: 0; padding: 4px 0; color: #676F51; font-size: 0.85em; }
If I write 'padding-top: 3px;', by default it sets 5px for padding-right and padding-left.
And 'padding: 3px 3px 0 3px;' doesn't behave as it should. Top padding is 3 px as we would expect but right and left border are 8px (5px (default padding) + 3px)!!!
Is there any way to set the left and right padding to be exactly 3px??
This default 5px padding 'pushes' my right sidebar in IE because my images width is exceeding the post width. I could resize all my images, but I don't want this! I have too many images on my blog.
Hope someone can help me.