How to make a common background for child units?

5afb28e65beba285612696.png
In the attached izobrajenii chart columns can be any number. It is necessary for them to specify a common background (specifically a linear gradient from blue to blue, passing through all the blocks). So far the only idea is to calculate the gradient for each column separately and then specify in the style tag; the decision spike and ugly. Is there a way to solve the problem?
June 5th 19 at 21:55
1 answer
June 5th 19 at 21:57
Solution
Use background-attachment: fixed:
https://jsfiddle.net/37b7Lqhu/2/

Find more questions by tags CSSHTML