• On my blog

    https://www.LeahNash.com/blog

    I somehow have ended up with uneven gray borders on the images. The border does not display on the right side. Not sure how this happened or how to fix it. I like have the border there, just not uneven. It was not a problem before and then I made a code error when I was posting and now I can’t fix it.

    Any thoughts?

    Thanks much.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You might try looking in your theme’s functions.php file for the following line of (or similar) code:

    if ( ! isset( $content_width ) ) $content_width = 588;

    If it is not there try adding it to the end of the file just before the last ?>.

    Setting the content width to 2px less than the <div> width may bring the 2px wide border back into view.

    Thread Starter lnash

    (@lnash)

    I tried it, but it didn’t work. Thanks for the suggestion though.

    Perhaps I miss calculated … either try a value of 586 in the above line; or, try changing line 162 in your style.css to this:

    .attachment-medium {
      display: inline;
      max-width: 586px;
    }

    Note the max-width: 586px;

    Thread Starter lnash

    (@lnash)

    That totally worked! Nice job, thanks so much.

    -Leah

    You’re welcome! I’m glad the CSS worked for you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Uneven Image Borders’ is closed to new replies.