Thumbnail gallery borders
-
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!
-
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
-
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 ?
-
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;
} -
-
This seems to work with WebKit-based browsers (Safari etc.):
dt.gallery-icon img.attachment-thumbnail { border-style: none; border-width: 0; } -
change
.gallery img {
border: 2px solid #cfcfcf;
}
to
.gallery img {
border: 0px;
}
in wp-include/media.php -
-
oops I am sorry. I didnt notice that this is a wordpress.com forum. I thought its a wordpress.org forum.
-
- The topic ‘Thumbnail gallery borders’ is closed to new replies.