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

Bramus
in reply to Paweł Grzybek • • •Interop 2022 Viewport Investigation Effort Demo Pages
interop-2022-viewport.netlify.appPaweł Grzybek
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.
Chris Coyier
in reply to Paweł Grzybek • • •Oh sorry I missed this. I got u.
codepen.io/editor/chriscoyier/…
Paweł Grzybek
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