@SoulRvr29
Posted
You have set width: 40%
in the .container
class, so the card can only occupy 40% of the width and when the screen is reduced, it does not fit, so the right side slides down. Remove width: 40%
and instead set e.g. max-width: 600px
.
In the body you have set height: 100vh
, never set a fixed page height, because if something is too big it will be cut off, instead set min-height: 100vh
.
Marked as helpful