Demystifying CSS by Kevin Powell
Don't use hieght in px instead go for responsiveness
Flexbox :
Flexbox children goes for smallest possible value..even if you imcrease its sibling content it won't break
and will go try fitting to the limit it is possible to get small
This is the default bheaviour but we can change if we dont want it
even if we add 100% or 1000px it will stull not break but will try to cover the maximum space possible and in the above case it is 50% width as it need to give equal width to both
Flexbox elements try to get miniumsize when possible and also if the box is limited they will shrink down to a djust and same when width is increased.
If we increase the height of one element all will try to get the same height but if we reduce one element height then others remain same but that one will only get smaller
n






Comments
Post a Comment