I am trying to create a margin that disappears as the viewport becomes smaller, while the main content remains the same size as long as possible. This margin is supposed to have a maximum size, so using auto
is out of the question.
In other terms, my question is how to control the shrink priority of different items on the website.
The Flexbox model allows to set the ratio of shrinkage, but not the order of it.
Which options, not using Javascript, do I have to achieve this?
Note: I'm answering my own question here but I'm also looking for better answers.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…