on-internet
← Community

striped pattern as background in html css by use background-image repeating-linear-gradient

Stack Overflow ·

Is it possible with CSS background-image repeating-linear-gradient to create such a pattern? Such stripes composed of only two colors are possible. But I need a 5 color pattern. Black, Red, Green, Blue and White in spacing and sequence as shown in the attached image. I purposely showed the colors like this to make it easy to see what I mean. In the target scheme they will be different shades of gray. Each stripe is 1px, white spaces 4px. The whole pattern is to be 60px wide. Is it possible with CSS background-image repeating-linear-gradient or in another CSS way but such that it would be a bac

Comments

Sign in or sign up to comment and upvote.

No comments yet.