Flex based calculation possible?

Is it possible to calculate the flexbox flex-basis property?

Something like that

flex-basis: 20% -30px

+3


source to share


1 answer


Yes, and you are using CSS Calc

flex-basis: calc(20% - 30px);

      



Note that the space is minus -

.

+6


source







All Articles