Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

This question already has an answer here:

I added a new content type with some fields

I have a field to upload image, I want to add a CSS class to this specific field, Should I done it via node-file.tpl.php

or via the dashboard and where?

share|improve this question
add comment

marked as duplicate by MPD Mar 5 '13 at 12:02

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

Try out 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.

share|improve this answer
add comment

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