- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hi guys,
do you have any idea for alternating tables row background colors? In order to make the table rows more readable?
It would be great if it is possible not to modify the HTML, but only the CSS. Maybe with “:nth” property?
Thanks a lot!
Perhaps you could show us the HTML in Codepen.
The CSS is likely to depend on it.
However: https://css-tricks.com/snippets/css/css3-zebra-striping-a-table/
Correct Paulie!
Here’s my pen: http://cdpn.io/CpvEr
I would like to remove the class attributes from html, and accomplish that only by CSS (if possible). Of course I will use many more rows…
Thanks
Oh thanks! I hadn’t seen you found a solution! ;)
It works like a charm: http://cdpn.io/CpvEr
Here you go: http://codepen.io/Paulie-D/pen/aqKbj
And this is new: https://css-tricks.com/complete-guide-table-element/
Thanks!!!!!