Forums / Setup & design / Add CSS class to img element

Add CSS class to img element

Author Message

paul bolger

Wednesday 28 February 2007 3:29:36 pm

I normally add borders to images by adding a class to the HTML img element - seems silly to add it to a wrapper element.

It would be nice to be able to add this to the image properties dialogue - does anyone know how this could be done? Obviously this is an option (border yes/no).

Regards
Paul Bolger

Paul Bolger

Betsy Gamrat

Wednesday 28 February 2007 6:28:07 pm

http://ez.no/doc/extensions/online_editor/4_x/usage/formatted_text/the_class_parameter

paul bolger

Saturday 03 March 2007 10:30:27 pm

Thanks Betsy, but it's not that simple. you can add classes to most HTML using the class parameter, but I don't think it works for the img element. There is a border style in one of the image templates but it doesn't seem to work in 3.86 because of a CSS error (it doesn't specify width or color). I'll check 3.9 and put in a bug report if it hasn't been fixed there.

Paul Bolger