Thumbnail gallery borders

  • Author
    Posts
  • #217949

    Hi everyone,

    I really like the new thumbnail gallery option on WordPress, but I’d like to know if it’s possible to remove the borders on the images. I figured out the CSS to get rid of the borders of images I upload separately:

    .post img {
    border:none;
    }

    but it doesn’t affect the gallery pictures. I am using the Digg 3 theme, and my blog is http://digital-robots.com (domain mapped from http://digitalrobots.wordpress.com ). Thanks!

    #218054

    cornell
    Member

    try doing the same thing for “.gallery img”.

    Do you have firefox? The web developer toolbar for FF is a godsend when looking at stuff like this.

    C

    #218060

    Thanks for the reply Cornell! I tried it out but unfortunately the borders are still visible. I do have Firefox, is the web developer toolbar you’re talking about a plugin? Is this the add-on you’re referring to: https://addons.mozilla.org/en-US/firefox/addon/60 ?

    #218096

    borders are still visible for me as well. wordpress is writing this CSS directly to my page, can’t override in my CSS file… what to do?

    .gallery {
    margin: auto;
    }
    .gallery-item {
    float: left;
    margin-top: 10px;
    text-align: center;
    width: 100%; }
    .gallery img {
    border: 2px solid #cfcfcf;
    }
    .gallery-caption {
    margin-left: 0;
    }

    #218415

    does anyone have a solution to this?

    #218416

    deltafoxtrot
    Member

    This seems to work with WebKit-based browsers (Safari etc.):

    dt.gallery-icon img.attachment-thumbnail {
    	border-style: none;
    	border-width: 0;
    }

    #218417

    cliquee
    Member

    change
    .gallery img {
    border: 2px solid #cfcfcf;
    }
    to
    .gallery img {
    border: 0px;
    }
    in wp-include/media.php

    #218418

    cliquee
    Member

    where is gallery-icon defined in the wordpress code??

    #218419

    cliquee
    Member

    oops I am sorry. I didnt notice that this is a wordpress.com forum. I thought its a wordpress.org forum.

    #218420

    nickmomrik
    Staff

    cliquee,
    WordPress.com users don’t have access to modify that file.

The topic ‘Thumbnail gallery borders’ is closed to new replies.