Skip to content

Instantly share code, notes, and snippets.

@luxplanjay
Last active August 9, 2024 14:19
Show Gist options
  • Save luxplanjay/b2cdf8f124fc2c896789a28b6ba16a87 to your computer and use it in GitHub Desktop.
Save luxplanjay/b2cdf8f124fc2c896789a28b6ba16a87 to your computer and use it in GitHub Desktop.
Формула расчёта ширины flex-элемента в сетке
.element {
flex-basis: calc((100% - кол-во маржинов в строке * значение маржина) / кол-во элементов в строке);
}
@Inhaasap
Copy link

Thnak you!

@SashaWiscon
Copy link

Thanks, let Chesus helps you)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment