Return to Support

Remove border on one images

Home Forums Graphene WordPress theme Support Remove border on one images

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #9535
    KingSwiff
    Member

    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

    #43871
    Anonymous
    Member

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

    #43872
    KingSwiff
    Member

    No, just an image, no link.

    #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/

    #43875
    KingSwiff
    Member

    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;
    }

    #43876
    KingSwiff
    Member

    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.