I want to add a class on cck image field output img tag, not on field wrapper div. How can i do it?

1 Answer 1


I think you should use Field Formatter CSS Class module for this. Module page says :

The Field formatter CSS class module allows you to set any text/list/option/taxonomy field to render as CSS class on the node. This enables the node author to select predefined CSS styling per node.

  • 1
    I tried this but it adds a class on image wrapper div not on img tag.
    – Swati
    Mar 20, 2014 at 6:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.