Design comparison
SolutionDesign
Solution retrospective
How can I make this responsive ? It has bugs when it is used in small-scale devices as I haven't made it responsive.
Community feedback
- @hafizanadliPosted over 3 years ago
You already did great on centering container element by setting minimum main height to 100vh and using flex.
For sizing the container I suggest like this
.container{ width:100%, max-width:25rem, margin:1rem, }
or you can do this too:
.container{ width:90vw, max-width:25rem, }
You don't need this code below, it will just ruined the responsiveness: ` @media (max-width:375px) { body{ max-height: 100vh; max-width: ;
} .container{ overflow: hidden; height: 100vh; max-width: 300px; }
} `
Marked as helpful1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord