How to make those hexagons and its background with css

I was watching a youtube short and i thought how to make those hexagons and its background image with css https://www.youtube.com/shorts/IDYVZT3Jwzk?feature=share
Tony PowerPoint
YouTube
PowerPoint trick #presentationdesign
tonybuziness@gmail.com (for commercial offers) Instagram https://www.instagram.com/tonyppt_/ TikTok https://www.tiktok.com/@marketer.s_diary?lang=en #presentation #powerpoint #ppt #powerpointtutorial
7 Replies
Joao
Joao9mo ago
Did you come up with something?
Sheikh Barkotullah
no
roelof
roelof9mo ago
Temani Afif
CSS-Tricks
Hexagons and Beyond: Flexible, Responsive Grid Patterns, Sans Media...
A little while back, Chris shared this nice hexagonal grid. And true to its name, it’s using —wait for it — CSS Grid to form that layout. It’s a neat trick!
Sheikh Barkotullah
but how to give all of those hexagons same image as background?
Joao
Joao9mo ago
That's the easy part, create a common background with the image, then set the hexagon background to transparent and background-clip. How to setup a hex grid of arbitrary number of rows and columns is the tricky part
Sheikh Barkotullah
do you have any idea on that?
Joao
Joao9mo ago
I suppose grid is an esy but clunky way of doing it? But that css-tricks article seems very complete about that too