>>1337in 2019, i was working on a project that had to support multiple devices and screen sizes without using media queries excessively - something new for me back then ♂️
i tried all sorts of tricks like fluid grids with custom properties but hit dead ends. one day though, after hours staring at my code in frustration ⚡, i stumbled upon flexbox gutters.
it was a game changer! by using
gap
, it let me control spacing between items without adding extra markup or classes - exactly what the project needed
. container {display: grid;}. item {width : calc(10% + (var(--gutter.5em) *2))}/'' and for gutters ''/body::before. body::after{content:";flex-basis:[code]calc(var("--grid-gt", "6") - 3)i ended up using a mix of grid & flex to create responsive layouts that were both clean AND dynamic. it was like unlocking the css superpowers i didn't know existed ⭐