Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Which class do I need to add to my theme's local.css to modify the styles of a multigroup field?
With regular fields I can add, for example, class ".field-field-image".
When I look at the entire multigroup with firebug it has as class: "content-multigroup-display-table-multiple-columns collapsible".
Thank you.
Comments
Comment #1
markus_petrux CreditAttribution: markus_petrux commentedhmm.. I think we need to add something here. Changing the issue category to "feature request".
Comment #2
markus_petrux CreditAttribution: markus_petrux commentedOk, I have committed to CVS a small patch that adds a unique per multigroup CSS class to the multigroup wrapper in node view. The class name is derived from the group name as follows:
And now this can be used to write selectors to match almost anything else within the multigroup.
Comment #3
tomsm CreditAttribution: tomsm commentedWorks great! Thank you!