[Solved] Align text inside div on window resize [closed]


In your .div_center you have provided a height of 370px. But due to the margin incmoing from top, your checkbox is being pushed outside the box.
Here’s a tweak, just set height to fit-content, and the box would always keep hold of it’s contents.

solved Align text inside div on window resize [closed]