Having trouble with a CSS challenge. I'm trying to create a black bar that displays every X pixels, incrementing by 10px each time it appears.
For example, the first bar would appear at 100px, the second at 110px, and so on.
I've been experimenting with the background style below to achieve this in part:
background: repeating-linear-gradient(white, white 1405px, black 210px, black 37.4cm)
Is there a CSS expert out there who knows of a solution?
UPDATE
After some trial and error, I managed to position the line every 1405 pixels using the code below:
background: repeating-linear-gradient(white, white 1405px, black 1405px, black 1415px)
However, I still need the line to appear after every element by increasing by 10 pixels each time.
Check out how it looks now: https://i.sstatic.net/AvEru.jpg. Sometimes there may be multiple elements like this: https://i.sstatic.net/npyo1.jpg
The challenge remains to place the line behind the elements at intervals of 1405 pixels while increasing by 10 pixels with each appearance (1405px, then 1415px, then 1425px, and so on).