Remove border on one images

  • KingSwiff

    #9535

    Hi all.

    I can remove the border around all images, but I like the border, except for one image – how can I remove border on just one image?

    On the images I can put a CSS style, but can’t make it work.

    Have tryed wirh

    style="border:none;"
    border= 0;
    border= none;

    Thanks

    Anonymous

    #43871

    These are not CSS codes. Link to the page with the image?

    KingSwiff

    #43872

    No, just an image, no link.

    Mod

    Kenneth John Odle

    #43873
    Quote:
    No, just an image, no link.

    He means “please post an image to the page where this image is” so that he can provide the proper code for it.

    WordPress assigns a unique ID to almost everything. You can add a border to a single instance of something by using CSS that targets its unique ID.

    See this post:

    http://techblog.kjodle.net/2012/02/24/styling-wordpress-posts-pages-archives-and-home-pages-by-class/

    KingSwiff

    #43875

    Ahhh, thank you, very good article! And it took me half way. The border is gone, but there is still something around the image:

    http://test.bedste-test.dk/om_siden/

    I used this code:

    .page-id-179 .entry-content img,
    .child-page img {
    border: 0px;
    margin: 0px;
    }

    KingSwiff

    #43876

    Okay, the border disappeared – even when the “invisible border” didn’t, but my question was to remove the visible border, so I consider the problem as solved, and now the topic is closed.

    Thanks again!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.