trying to create own flexbox grid but for some reason cant get the sizes right.
$class: "span";
@for $i from 1 through 12{
.#{$class}-#{$i}{
flex-basis: calc(#{$i}/12 * 100%);
}
looks like this
i need to add margins but its not letting me use this.
flex-basis: calc(((#{$i}/12 * 100%) + (#{$i} * 20px)));
Top comments (4)
Thought I should update this post I ended up deleting everything because was having issues with alignment and sizing.
I used grid. I wrote this for a developer test if they happen to see this know I did not copy this code I wrote it ( :
fixed
dev.to/joelbonetr/building-a-flex-... :D
thank you