WordPress.org

Forums

[resolved] How do I remove image borders in posts in twentyeleven (7 posts)

  1. mb studio services
    Member
    Posted 3 years ago #

    I am trying to remove the image borders that apear around the images in my posts. I am using wordpress v3.2.1 and twenty eleven theme.

    Here is a link to my website, http://www.mbstudioservices.com

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

    add this to the end of style.css of the child theme:

    img[class*="align"], img[class*="wp-image-"], #content .gallery .gallery-icon img
    {border: none;}
  3. mb studio services
    Member
    Posted 3 years ago #

    That didn't work...

    I placed the code at the bottom of my child theme like you said. It didn't remove the image border, I also clicked on the post to see if it removed the border on the image there and it was there as well.

    Also
    I am using firefox v5.0.1 on a Mac OS platform

  4. alchymyth
    Forum Moderator
    Posted 3 years ago #

    whatever editor you are using to make the edits, has wrongly converted the double quotes into html character entities:

    that is what is in your style.css:

    img[class*="align"], img[class*="wp-image-"], #content .gallery .gallery-icon img
    {border: none;}

    this how it should look like:

    img[class*="align"], img[class*="wp-image-"], #content .gallery .gallery-icon img
    {border: none;}
  5. mb studio services
    Member
    Posted 3 years ago #

    Thank you, that worked, I am using the editor built into wordpress 3.2.1

  6. catBreeze
    Member
    Posted 3 years ago #

    I removed the page titles and am trying to insert an image in place of the text. Then I tried to remove the image border by inserting:

    img[class*="align"], img[class*="wp-image-"], #content .gallery .gallery-icon img
    {border: none;}

    under /*image borders*/

    Have I inserted your code in the wrong place on my child Style.css? Could you please help?

    The url is: http://www.designact.com/blog/cats

    Thanks so much.

  7. esmi
    Forum Moderator
    Posted 3 years ago #

    Please post your own topic.

Topic Closed

This topic has been closed to new replies.

About this Topic