How to use style.css to theme CCK
Last modified: August 27, 2009 - 00:02
Step 1. Find out the cck field names you want to theme:
/admin/content/types/fields
For example, I want to define the following two field names:
field_author
field_photo
Step 2. In style.css, at end add:
.field-field-author {
color: blue;
}
.field-field-photo {
float: right;
}You can also define field type.
For example, I define all my "text" type:
.field-type-text{
font-style: italic;
}For example, I define all my "image" type:
.field-type-image{
margin-top:1em;
}
I found this extremely
I found this extremely helpful and straight forward. Thank you.