Skip to content

Instantly share code, notes, and snippets.

@luxplanjay
Last active May 11, 2024 15:56
Show Gist options
  • Star 38 You must be signed in to star a gist
  • Fork 14 You must be signed in to fork a gist
  • 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