torsar Posted August 7, 2022 Report Share Posted August 7, 2022 Зачем нужен flex-bsis, если есть width и hieght? Смысел? Quote Link to comment Share on other sites More sharing options...
0 Switch74 Posted August 8, 2022 Report Share Posted August 8, 2022 flex-bsis указывает размер блока по главной оси: если row, то это ширина если column, то это высота а width и height всегда ширина и высота соответственно Quote Link to comment Share on other sites More sharing options...
0 torsar Posted August 8, 2022 Author Report Share Posted August 8, 2022 1 час назад, Switch74 сказал: flex-bsis указывает размер блока по главной оси Я понимаю, а смысел в нем (практическое применение)? Если можно указать width или height? Quote Link to comment Share on other sites More sharing options...
0 Switch74 Posted August 8, 2022 Report Share Posted August 8, 2022 если вы укажите width и height то блоки у вас будут с одним и тем же соотношением сторон с разными flex-direction а flex-bsis изменит соотношение сторон при изменении flex-direction посмотрите примеры тут https://tproger.ru/translations/how-css-flexbox-works/ а еще не всегда требуется указывать height Quote Link to comment Share on other sites More sharing options...
Question
torsar
Зачем нужен flex-bsis, если есть width и hieght?
Смысел?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.