Kevin Powell - CommunityKP-C
Kevin Powell - Community4mo ago
22 replies
Faker

Flex: 1 vs margin-inline: auto

Hello, can someone explain the difference between setting a flex item to flex: 1 and using margin-inline: auto pls.

What I wanted to know specifically is, if we use margin inline and flex of 1 on the same element, will this cancel out the effect of flex 1 to grow, because the available space will be distributed accordingly, no?
Was this page helpful?