Closed (outdated)
Project:
ImageField Extended
Version:
6.x-4.1
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Feb 2011 at 15:58 UTC
Updated:
7 Mar 2016 at 10:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
alan d. commentedThe best answer is FireFox & FireBug combo. This will show you the class names instantly!
But to answer your question, use the field name of the image, not the additional property added.
For example, the CCK field "field_images", the CSS is:
Comment #2
plastikkposen commentedThanks for reply Alan.
However, I've tried firebug option, but still can't figure it out.
Black hole: .imagefield-field_images-wrapper label (what/how does the code following the "label" part goes?)
Goal: I want to make some of the extended textfields a bit bigger and bolder with CSS code, so the user dont have to bother with formatting text proper.
See firebug code in picture
Comment #3
alan d. commentedThe label is the HTML element to hide this. There are no default classes to target individual properties, but you can target all via:
This effects the label too, unless hidden with the first CSS rule.
If this is not enough, you can override the template imagefield-extended-image.tpl.php in your theme, but you will need to know some PHP programming to do this.
Comment #4
plastikkposen commentedThanks for precise answer Alan
I can confirm the CSS format works:
.imagefield-field_NAME-wrapper { some CSS code }It will, however affect all fields as mentioned in the post above.
It would have been neat if it would be possible to target individual extended fields with CSS.
I'll try to expore the template approach.
Thank you
Comment #5
alan d. commentedOn about line 343, you could try adding the following line, this should set a class on the specific element
ie:
If this works (not testing environment atm) I'll commit it to dev
Comment #6
alan d. commentedClosed because Drupal 6 is no longer supported.