WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Can't remove border around images inserted into posts (7 posts)

  1. brittanylynn01
    Member
    Posted 1 year ago #

    When I interest an image into a post, a border automatically appears around it and I cannot figure out how to remove it. I've tried numerous suggestions from other Topics but none work for me.

    I was looking through the CSS template and I think I have to change something in here

    [CSS moderated, Please just post a link to a page demonstrating the problem.]

    not sure if i am right.

    Thanks in advance
    billsbackyardwildlife.com

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Try using Firefox with the Firebug add-on for this kind of CSS work.
    http://getfirebug.com/

  3. Digilodger
    Member
    Posted 1 year ago #

    Trying adding this into your custom CSS or child-theme CSS; or if you have Jetpack installed, go to Appearance --> Edit CSS:

    #content img, #content p img { padding: 0px; }

  4. charlyanderson
    Member
    Posted 1 year ago #

    Is it one of those borders that IE used to put on? If so just put this in your css,

    img{border:none;}

  5. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    It's not a border -- as noted above by Digilodger, it's padding.

    @brittany - hopefully you are making any changes in a custom CSS option? It's generally not a good idea to modify theme files as the changes will be erased when the theme is updated.

  6. brittanylynn01
    Member
    Posted 1 year ago #

    @WPyogi - yes I made a Child Theme

  7. brittanylynn01
    Member
    Posted 1 year ago #

    @Digilodger

    I tried what you suggested and it worked.

    Thanks all for your help!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags