I have a View, and when a certain field in the result has a specific value, I want to add a CSS class to that row.
How I can add css class to the matching row in views result in table
result mode directly in views
pages, without template files?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityYou can do this in views. The class in views supports tokens. So if you use the value of a field [field_value] and put that in the class, then you can style it by using .field_value in your css.
This way every field will get a class, but only the ones you style in css will affect how they look.
template.php
???? why you falg as duplicate , do u understand question ????