Skip to content

Ratio width for elements

Compare
Choose a tag to compare
@RazvanDH RazvanDH released this 10 Apr 09:34
· 271 commits to master since this release

Consider the following situation:
col grid

You need the COLUMN and the EMPTY margins to have a 5-8-5 grid ratio proportion.
If we use the table mixin, then we need extra markup to create two empty cells to stand for margins. Using this mixin, you can send grid proportions and return a width in percentage for an element without the need of extra markup.