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 {

    but it doesn't affect the gallery pictures. I am using the Digg 3 theme, and my blog is (domain mapped from ). 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.


  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: ?

  4. 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. does anyone have a solution to this?

  6. This seems to work with WebKit-based browsers (Safari etc.): img.attachment-thumbnail {
    	border-style: none;
    	border-width: 0;
  7. change
    .gallery img {
    border: 2px solid #cfcfcf;
    .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 forum. I thought its a forum.

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

Topic Closed

This topic has been closed to new replies.

About this Topic