Need help? Check out our Support site, then


Thumbnail gallery borders

  1. 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!

  2. 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

  3. 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 ?

  4. kimberlybrooke
    Member

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

  5. myherooftheday
    Member

    does anyone have a solution to this?

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

    dt.gallery-icon img.attachment-thumbnail {
    	border-style: none;
    	border-width: 0;
    }
  7. change
    .gallery img {
    border: 2px solid #cfcfcf;
    }
    to
    .gallery img {
    border: 0px;
    }
    in wp-include/media.php

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

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

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

Topic Closed

This topic has been closed to new replies.

About this Topic