• Hello,
    For some reason, all images posted to my word press blog, come included with about 25px spacers on the left and right of the image. If I post the image with a border, the border wraps around the image and blank space. If i create borders using background colors and cell padding, the space still appears, but is just filled in.

    If i’m not explaining myself well enough, look at my site, and look at the border around the main image, it should be self explanatory.

    https://www.ryanmuir.com

    Does anybody have any suggestions as to how i might be able to fix this? one strange thing, is that in the preview of the post in the wordpress backend these spaces do not appear. i am at wits end, and see no apparent reason why it might be doing this.

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • You have this in your stylsheet:
    img {margin: 0 10px} /* all images styling */
    Change that 10 to ==> 0

    Thread Starter ryanmuir

    (@ryanmuir)

    hm, that didnt work but you pointed me in the right direction, there was a line of code directly above that;

    hr { margin: 10px 0px; height: 1px; background: #444; color: #444 } /* rule styling */

    changing that 10 to 0 solved my problem!

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘images have strange cell padding’ is closed to new replies.