Skip to main content


Hey all CSS wizards. I need your help.

I would love this bg pattern to be squares instead of little circles (radial-gradient). Is that even possible using pure CSS?

codepen.io/pawelgrzybek/pen/OP…

I have seen that on the ATProto website, but they use SVG for it.
atproto.com

@kevinpowell @css @bramus @chriscoyier 🙏

#css

in reply to Bramus

Hey, thanks. This is not exactly what I'm after. I would like a little 2px × 2px square, inside bigger background-size that is 1lh × 1lh.

Look at the ATProto website, this is a good example.

in reply to Chris Coyier

Hey Chris, thanks a ton! Your solution works great probably for most cases, love it!

It is not going to work if you would like your background to be transparent. @css and @Meyerweb suggested this solution.

codepen.io/pawelgrzybek/pen/Kw…

Worse browsers support because of the conic gradient, but allows to use transparent background.

Thanks so much anyway and have a fab weekend 🤗

Ps. Love new CodePen 2.0