Drupal Answers is a question and answer site for Drupal developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

This question was marked as an exact duplicate of an existing question.

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

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