CSS table using colspan and rowspan - better way to apply class to siblings?
-
26-10-2019 - |
Question
Here's my fiddle:
http://jsfiddle.net/UjAQf/102/
Is there a better way to apply the "pickBody" to each table row instead of inserting the class directly in HTML like I am doing? For example, "for each table row sibling apply this style."
Solution
You can do that by styling all the rows the same...
.geniusPicks table tr {
/* Your styles here */
}
Then for rows with other classes, override any undesired style elements in each class definition.
OTHER TIPS
Like this :
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow