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

gforce301’s picture

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

gkalala’s picture

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.