I would like to be able to add a CSS class to images inserted using image Assist. Currently, I can sort of cheat and add a class to the "align" function (so, "align=left unique_class"). But this adds the class to the span which surrounds the image. I want to add a class to the image itself (so, "Only local images are allowed.

Specifically, I am trying to add a lightbox group class so that certain images are excluded from the lightbox slideshow (like images I have in a block that aren't a part of the pages slideshow). To do this, I just need to add a class or 'rel'.

Is there any way to do this?
Thanks,
Maria

Comments

mariagwyn’s picture

Sorry, this somehow is incomplete:

What I want to do is add a unique class or "rel" to the Only local images are allowed. html.

thanks,
Maria

sun’s picture

Status: Active » Fixed

There is a unique CSS class ("inline"), which you can use in your CSS selector to find the contained image. See also #346597: Inline of images (span class) in 6.x

mariagwyn’s picture

I solved this, but not exactly as intended. What I wanted was to add a "rel" to the Only local images are allowed.

span.unique-class img {whatever I want}.

m

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.