My current project involves creating a background using SVGs in React.
I'm looking for an easy CSS method to arrange these icons in a grid, possibly with an offset for the second row.
I also need the width of the icons to be dynamic so that they adjust according to the screen width.
While I know how to achieve this using javascript, I'm curious if there's a simpler CSS approach available.
At present, the icons are displayed in a single row.
.bg-icons{
z-index: 1;
position: absolute;
height: 200px;
overflow: visible;
svg{
font-size: 4em;
margin: 20px;
opacity: 0.05;
}
}