The column-span
function will do just that.
scss
.foo {
// 3 column span, from the 1st column
width: column-span(3, 1);
Question
What I want to achieve is getting the width value (in percentage) of a specific amount of columns (based on the current context).
Is there a grid helper to do this (maybe find-grid
function)? Could you provide an example on how to use it?
La solution
The column-span
function will do just that.
scss
.foo {
// 3 column span, from the 1st column
width: column-span(3, 1);