Last active
August 9, 2024 14:19
-
-
Save luxplanjay/b2cdf8f124fc2c896789a28b6ba16a87 to your computer and use it in GitHub Desktop.
Формула расчёта ширины flex-элемента в сетке
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.element { | |
flex-basis: calc((100% - кол-во маржинов в строке * значение маржина) / кол-во элементов в строке); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thnak you!