Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #787877

    Hi Guys,
    If you look at the image of this post https://e-3.de/2017/01/31/sles-for-sap-applications-12-neuer-ankerpunkt-bei-der-sap-linux-nutzung/ and in fact all posts with a white-background-image, there is a black border on the left and right side of the image, that i can’t get rid of and can’t figure out where it comes from. It’s not in the image itself. I checked that in the media section.
    Please help!
    Cheers,
    Max

    #787895

    Hey Max,

    That is because you have following custom CSS code

    .big-preview.single-big img, .attachment-entry_with_sidebar.size-entry_with_sidebar.wp-post-image {
        border: 1px solid #e1e1e1;
        margin: 0 auto;
        padding: 7px;
    }

    Please remove it or add following one

    .big-preview.single-big img, .attachment-entry_with_sidebar.size-entry_with_sidebar.wp-post-image {
        border: none;
        padding: 0;
    }

    Best regards,
    Yigit

    #787899

    Hey Yigit,
    No it’s not! The grey border all around the image is actually what i want, that’s why i put the code there.
    I am talking about the black borders on the left and right inside the grey border.

    #787901

    Hi,

    And those lines are on the image itself. Please try opening the image in browser and try dragging it around to see the lines :)

    Best regards,
    Yigit

    #787919

    Oh sorry dude!
    I just checked all the imagesizes and i don’t know why, but on the original image there is no border and on the automatically created imagesizes there are different borders…
    Do you have any idea where this could come from?
    Best regards,
    Max

    #788151

    Hi,

    No worries at all!
    I am not really sure but i would try cropping from sides a bit more :)

    Best regards,
    Yigit

    #788252

    Thanks Yigit,

    I’ll figure it out! You can close the topic.

    Best regards,
    Max

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Why is there a left and right border on images with white background?’ is closed to new replies.