Hi all, I'm trying to add an image border around an image within a blog post. I've tried the typical img src=blah.jpg border=1, but that does not seem to work. I've tried css tags also, but maybe I'm not using the right ones?

The post is http://www.unixville.com/node/37

I'd just like to get a simple 1 pixel border around that image.

Thanks.

Comments

moazam’s picture

Ack! Boy do I feel silly. 1 second after I posted, I figured it out. Had to add,

style="border: black solid 1px;"

within the img tag

800series’s picture

I'm just writing to bump this article with the current date, since it TOTALLY helped me figure out how to SELECTIVELY border images -- along with a complementary article, which I've linked below. Thank you, Drupal.org posters!!

The dichotomy here may seem like I'm being facetious; I'm not. I am completely serious. With these two articles combined, I now have total flexibility as to which of my inline images have borders (and what kind), and which don't. Very, very sweet indeed.

This article: "Adding an image border"
http://drupal.org/node/59964

Companion article: "Get rid of image border"
http://drupal.org/node/39190

erhanbabayaro’s picture

that helped me.
thank you.

Illich’s picture

Thank you for the useful border tag
style="border: black solid 1px;"

I got it to work in Full HTML, but filtered HTML text format is removing it. The filtered HTML text format is set to allow img and I added style and border, but the border still got filtered out. I also tried disabling the "Correct faulty and chopped off HTML" filter, but the border still got filtered off.

I presume I'm missing something simple, but I'm still missing it.

Thank you.