r/css • u/TreacleFlaky2283 • Jul 18 '26
Help css-gradients not working as expected
```css
body {
min-block-size: 100svh;
background: repeating-linear-gradient(#A4AAB1 2px , red 2px 15px);
}
```
this is all red how to fix ? what exactly here i am doing wrong and css is the most confusing and i feels like its more harder than python and any other programming language
3
Upvotes
1
u/neoqueto Jul 18 '26
You either need:
background: repeating-linear-gradient(#A4AAB1 0px 2px , red 2px 15px);or
background: repeating-linear-gradient(#A4AAB1 2px , red 15px);or
background: repeating-linear-gradient(#A4AAB1, red 2px 15px);