I looked at your code on codepen.io. You simply need to remove or your adjust your min-width
attribute in for your html
tag in your CSS.
For example, if you write:
html {
min-width: 300px:
}
... your boxes will resize correctly with the screen size.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…