PDA

View Full Version : Remove image border in galleries


quirk6
Apr-24-2007, 07:02 PM
On my services page, there is a small 1px border around my images that I'd like to remove. It wouldn't be much of a bother except that I wanted to add text and to do so I added a 1px x 1px transparent png so that I could just put the text into the image caption. But, since there is that border around the "image" it doesn't disappear completely. Or perhaps there is a smarter or other way to get the text on the page without having to fool it with the barely existent image?

Thanks

apiercy
Apr-24-2007, 07:08 PM
If you add this it will hide the image completely:

#image_146682827 {display: none}

Or this will hide all of the borders:

.imgBorder {display: none}

quirk6
Apr-24-2007, 07:19 PM
Thanks!

The css to remove the image worked wonderfullyin Firefox, and while the image isn't there in IE either, the border for it is still there. So I thought I'd try the other css to remove the image border altogether, and interestingly, It made all of the images disappear (and mayb elsewhere, I didn't check before I removed the code).