1
Hello,
I’m trying to make a zig-zag Stripe in css3 with 4 colors, would be gray, white, pink and white again. However I’m only able to do it with two colors.
.zig {
background:
linear-gradient(135deg,
pink 25%,
rgba(0,0,0,0) 25.1%),
linear-gradient(225deg,
pink 25%,
rgba(0,0,0,0) 25.1%),
linear-gradient(315deg,
pink 25%,
rgba(0,0,0,0) 25.1%),
linear-gradient(45deg,
pink 25%,
rgba(0,0,0,0) 25.1%),
#ffffff;
background-size: 40px 40px;
background-position: -20px 0, -20px 0, 0 0, 0 0;
width: 240px;
height: 240px;
margin: 20px;
}
<div class="zig"></div>
Thank you very much was just that, just one more question. And if I wanted to edit the line thickness?
– Bruno Folle
I’ve managed to change the property height and background-size
– Bruno Folle
@Brunofolle I was going to suggest this to you, I think is the most practical way for this case! []’s
– hugocsl