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.
By robbieferrero on
I have a Views block that displays items based on a filter that includes five different taxonomy terms. The list always begins with the most recent item entered. I want to style each item based on it's term, but none of the list items (the view is as a list view) have any distinguishing css classes. I tried, without much luck, to add the taxonomy term to the classes for the list (even if the class were added to each div in the li, it doesn't matter, I just need them to be distinguished by their term).
Any ideas?
Comments
It's not too hard. You
It's not too hard. You theme the list view and you can effect each item any way you wish.
Read this --> http://drupal.org/node/42597
Center a list view page. Add css to a list view page.
Hi!
I have the same problem...
I want to add CSS styles to a list view and each element of view:
- center the list view
- put margin for each view element
- put margin-bottom
I have installed Asset-Injector and layout-builder but still not working.
Thanks.