I have a node with a field which is a List (integer). I can print the value in node tpl with the following:
<?php print render($content['field_name']); ?>
However I also need to style each result differently. For instance one of the options is 'large' and I want to add a background image to every 'large' result.
How can I do this? I was thinking if I could print the key value as a class along with the label the I could easily do the rest with CSS.