Alternate text colour for each line of paragraph
|Added at||2017-01-01 17:01|
I am trying to change the text colour on alternate lines of a paragraph. The problem is, the number of lines in a paragraph will depend on things like screen size. Is there a way in CSS where I can have alternate text colours for each line inside a
For example, in the following code
Each line of text should be an alternate colour regardless of which words are actually on which lines (which will obviously depend on the screen size).
My first instinct was to try and calculate the number of lines based on screen size, but then I'm not sure where to go from there.