Looking for a creative solution using only CSS to achieve a specific background pattern.
I envision a gradient that stretches horizontally and repeats vertically with gaps in between each repetition. Here's an example:
https://i.sstatic.net/7DLf1.png
(source: howsfamily.net)
While it's easy to create the horizontal effect like this:
background: linear-gradient(to left, white, red, white); background-size: 100% 50px; background-repeat: no-repeat; }
And the vertical effect (minus the horizontal gradient) like this:
background: linear-gradient(to bottom, red 0px, red 50px, transparent 50px, transparent 100%); background-size: 100% 150px; background-repeat: repeat-y;
Does anyone have any ideas on how to combine both elements into one seamless design?