0

Desired outcome:

Text

I want to create a background made with isometric dots. I've tried combining linear gradients to no avail. I don't want to use an image as that means I can't have dynamic foreground/background colors.

halfer
  • 19,824
  • 17
  • 99
  • 186
SollyBunny
  • 800
  • 1
  • 8
  • 15
  • I think you want to use background-image and add background-repeat like in this [solution](https://stackoverflow.com/a/8679404/17803626) – Lucie Feb 06 '22 at 17:33

1 Answers1

2

You need radial-gradient() here:

html {
  height:100%;
  
  --s: 30px; /* control the space between circles */
             /*        v-- the radius of circle */
  --g: radial-gradient(5px at 25% 50%,red 96%,#0000);
  background: var(--g),var(--g) var(--s) calc(var(--s)/2);
  background-size: calc(2*var(--s)) var(--s);
}
Temani Afif
  • 245,468
  • 26
  • 309
  • 415