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.
How do I get zebra striping in a views block of node-titles? Firebug tells me each row has a class of "row-1" or "row-2". Being a newbie, I don't understand where zebra striping lives, or how to add it.
Comment | File | Size | Author |
---|---|---|---|
#7 | Styling Zebra Striped Tables With CSS.png | 22.08 KB | ashish_nirmohi |
Comments
Comment #1
topdillon CreditAttribution: topdillon commentedPoorly worded. classes are like, row-1, row-2, row-3, etc.
Comment #2
aquariumtap CreditAttribution: aquariumtap commentedHi diwwin,
The HTML is generated by the Views module, not by Fusion. To add CSS classes to add zebra styles, I usually use take these steps:
Hope that points you in the right direction
Comment #3
topdillon CreditAttribution: topdillon commentedThanks.
I am learning (struggling with) CSS. I got the view setup correctly with Semantic Views, but I have not been successful in referencing the even and odd classes. In my fusion subtheme, "sidebar-first" is correct. Why would this not work?
below is my blocks.tpl.php...
Comment #4
topdillon CreditAttribution: topdillon commentedGot it! I have 2 stylesheets with this subtheme. for some reason, some blocks of css work in one and not the other.
Comment #5
stephthegeek CreditAttribution: stephthegeek commentedComment #7
ashish_nirmohi CreditAttribution: ashish_nirmohi commentedThanks , it is very well explained. I have shared one file for newbie to understand it bit more easier.