@correlucas
Posted
Hello Janina, congratulations for your solution.
You can add the property min-width: 100vh;
inside the body tag instead of applying height:100vh
on the container, also the flex property, like in the following example:
body { display: flex; justify-content: center; align-items: center; flex-direction: column; min-width: 100vh; }
For the card you can also apply min-width instead of width this way when your page stretch also the content will be flexible once is the minimum is defined by min-width and width is a fixed valor.
You can also apply *REM instead of PX to make your website better for more screens. You can have more info about here: https://uxdesign.cc/why-designers-should-move-from-px-to-rem-and-how-to-do-that-in-figma-c0ea23e07a15
I hope this help you.
Marked as helpful
@schwalbj
Posted
@correlucas Thank you, Lucas! I will definitely keep that in mind for the next projects! :)