I am having problems with repeating linear gradient with tables. Basically, I can't make it beautiful with tables, especially in Chrome. Despite the fact that I apply the indicated rule to the tr element, it looks like sets of td elements, and instead of having continuous stripes, I get “jagged” ones (= stripes do not extend along the borders of the cells).
.striped { background: repeating-linear-gradient( 45deg, #FFFFFF, #FFFFFF 10px, #DDDDDD 10px, #DDDDDD 20px )}
Here Codepen illustrates the problem:
http://codepen.io/merryprankster/pen/bpeCc
With Chrome, it looks very awful. With Firefox, it’s almost not bad, but not really (sometimes stripes of different widths - by one pixel - across cell borders).
EDIT : to clarify, I need to target a specific row, not a whole table. So yes, the tr styling clause really matters.
css google-chrome css3 linear-gradients
merryprankster
source share