QR code using VS code

Solution retrospective
I need help on the mobile version .
Please log in to post a comment
Log in with GitHubCommunity feedback
- @ecemgo
Some recommendations regarding your code that could be of interest to you.
CSS
- If you want to center it correctly, you can use flexbox in the
body
:
body { /* padding: 20px; */ /* max-width: 1440px; */ display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; background-color: hsl(212, 45%, 89%); // the recommended background-color }
- secondly, you don't need
.bd-background
anymore, you can remove it - you also need to remove
margin-top
andmargin-bottom
because of the flexbox which is used in thebody
- also, you want to adjust the card depending on mobile size, you can use
max-width
.text-container { background-color: hsl(0, 0%, 100%); margin-left: auto; margin-right: auto; padding: 10px; /* width: 20%; */ /* height: 20%; */ /* margin-top: 100px; */ /* margin-bottom: 100px; */ border-radius: 10px; max-width: 220px; // max-width makes it responsive min-height: 275px; }
- finally, if you want the
.attribution
at the bottom
.attribution { text-align: center; position: fixed; bottom: 0; }
Hope I am helpful. :)
Marked as helpful - If you want to center it correctly, you can use flexbox in the
- @sumanth-chandana
Hi mate! congrats on completing the challenge. I have suggestions from my side that may help you:
- Use
background-color
on the wholebody
, not on thecontainer
. - An
<img>
must contain analt
attribute by default so that screen readers might know the element present over there. - Use
@media queries
to resize the HTML elements in your page, for more on that click here
I hope my feedback will help you.
Marked as helpful - Use
- @timberstream
how to use @media query to resize
- @EmilianoGomezA
Hello!, what problem do you have in the mobile version?
Join 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