Hello again, having played around with other themes, I've come back to this one, as it really is the best!
I created a view with a table in it and when previewing it there is the zebra styling, however when I visit the page from the menu my view has no zebra stripping! Anyone else noticed this behaviour?
Firebug reports:
system.css?
tr.even, tr.odd {
background-color:#EEEEEE;
border-bottom:1px solid #CCCCCC;
padding:0.1em 0.6em;
}
Do I have to override the CSS? If so how?
Thanks again for your wonderful work on this theme, very much appreciated!
Comments
Comment #1
ludo1960 commentedGot a demo to do later this week, some help would be nice.
Comment #2
ludo1960 commentedThe answer is to target the CSS of the view:
.view-id-theviewname tr.even {
background-color: blue;
}
.view-id-theviewname tr.odd {
background-color: green;
}
Use colours as required.
Comment #3
ajayg commentedWhat I have noticed, zebra coloring does not work with IE but works fine with FF. Anybody noticed this?
Comment #4
arpieb commentedI haven't run into it yet myself (no custom zebra stripes on my sites to date), but from what I understand IE is flaky about honoring the TR background-color style, and you have to also set it on the TD objects in the table as well...
Comment #5
andregriffin commentedYes, you have to target views tables specifically. Specifying TD bg as arpieb mentioned is also a good idea for IE. I will look into better global styling in the next version.