Design comparison
Solution retrospective
This works almost fine in a desktop browser, but in mobile it messes up. The same occurs when i scale down the browser window. Can you please help me fix this issue? How to make my website responsive?
P.S :- I have used % and rem units for any height/width/padding ,etc. Also I am yet to learn about any framework - so far I only know CSS and HTML.
Community feedback
- @dewslysePosted about 3 years ago
Hello Aritra! Congrats on your submission. You need to set up a media query to target mobile devices. This would prevent the page 'messing up'. Find below some references to setting up and using media queries.
Happy coding!
0 - @Scarab911Posted about 3 years ago
High, I just uploaded my solution on this also. Did you try to use @media for mobile responsivenes?
0 - @A-amonPosted about 3 years ago
Hello! Good job~
I have a few suggestions:
- To center it using position:absolute; remove the margin-left and margin-top for your .box. Instead, do this: 👇
top:0; bottom:0; left:0; right:0; margin:auto;
- Set the width to <= 100% when it's on mobile size using media queries. 😀
- The "Proceed to payment" button's height seems a little too short. Maybe increase the height or padding. 👀
0
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