WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Remove gray borders around thumbnail photos (8 posts)

  1. John Lyman
    Member
    Posted 1 year ago #

    I have three areas I'd like to remove the gray borders around thumbnail photos. I did an inspect elements code search and while I found the correct code to input to remove the gray borders around the various thumbnail images on my homescreen it doesn't appear to be working.

    The two codes I have are:
    .NewsListImage img {
    margin: 15px 0;
    border: none;
    }

    And:
    #featured_photo img {
    border-width: 5px;
    border-style: none;
    }

    And:
    .category-image-block img {
    border-width: 5px;
    border-style: none;
    }

    Thank you

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Can you post a link to your site? It's really impossible to help with things like this without seeing the actual site live.

  3. John Lyman
    Member
    Posted 1 year ago #

    Sure of course sorry I neglected to do so and thanks for any help.

    http://www.internationalpolicydigest.org/

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    You found the right code - what did you do with it? Try changing it to:

    .NewsListImage img {
    margin: 0;
    border: 0;
    }
    
    And:
    #featured_photo img {
    border-width: 0;
    border-style: 0;
    }
    
    And:
    .category-image-block img {
    border-width: 0;
    border-style: 0;
    }

    Also be sure you are clearing any caches -- browser and any on your site or server.

  5. John Lyman
    Member
    Posted 1 year ago #

    Thanks for the code. I inputed it into the custom.css option but its still not catching.

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Looks like you are missing a closing bracket in this section:

    #wrap {
    background: white;
    
    .NewsListImage img {
    margin: 0;
    border: none;
    }

    above the .NewsListImage line

  7. John Lyman
    Member
    Posted 1 year ago #

    Great I can't thank you enough especially on a holiday.

  8. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    No problem -- and happy holiday to you too!

Topic Closed

This topic has been closed to new replies.

About this Topic