html {
--s: 40px; /* control the overal size */
--r: 6px; /* control the radius of the circles */
--b: #f2f2f2; /* the background color */
background:
conic-gradient(#0000 75%,var(--b) 0)
0 0/calc(2*var(--s)) calc(2*var(--s)),
radial-gradient(black var(--r),var(--b) calc(var(--r) + 1px))
0 0/var(--s) var(--s);
}
2
Answers
Increase the background size to 2x the spacing between your dots.
Have 3 dots for every repetition of the background:
The result should look something like this:
Note: made the dots a bit bigger to better show the result
Add another gradient to hide some dots:
Using CSS variables for better control: