Stack Overflow Asked by Simplicius on January 5, 2022
So I was quickly typing out a flex-grid generator in scss
as I often do, but for some weird reason this returns an error now. From my assumption this is totally correct and should simply compile to the desired classes. I’m using a 12-col-grid
system, this is my approach flex: 0 0 #{100 / 12 / $i}%;
, I propably miss something really obvious. My Codepen.
@mixin colSpan {
@for $i from 1 through 12 {
.col-#{$i} {
flex: 0 0 #{100 / 12 / $i}%;
max-width: #{100 / 12 / $i}%;
}
}
}
@include colSpan;
add the %
to the 100
@mixin colSpan {
@for $i from 1 through 12 {
.col-#{$i} {
flex: 0 0 #{100% / 12 / $i};
max-width: #{100% / 12 / $i};
}
}
}
@include colSpan;
Answered by Temani Afif on January 5, 2022
2 Asked on December 11, 2020 by learningisfun
5 Asked on December 11, 2020 by nav
1 Asked on December 11, 2020 by simon-angatia
2 Asked on December 11, 2020 by martin-thoma
1 Asked on December 11, 2020 by codemachine98
2 Asked on December 11, 2020 by devb1
1 Asked on December 11, 2020 by tora-garo
2 Asked on December 10, 2020 by sanane-sanane
3 Asked on December 10, 2020 by robin-orheden
0 Asked on December 10, 2020 by bgeun
0 Asked on December 10, 2020 by fgg1991
0 Asked on December 10, 2020 by giantg2
0 Asked on December 10, 2020 by fingers10
asp net core 3 1 asp net core webapi entity framework core entity framework core 3 1 sqlconnection
1 Asked on December 10, 2020 by azza-abidi
4 Asked on December 9, 2020 by jacky-chan
1 Asked on December 9, 2020 by thor
Get help from others!
Recent Answers
Recent Questions
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP