Design comparison
Solution retrospective
I can make the interface look somewhat similar to the design
What challenges did you encounter, and how did you overcome them?I was struggled to make the page responsive and align correctly like in the mobile design. I also have some issue what set css for table items, for example the numbers in the order list items don't perfectly align with the contents
What specific areas of your project would you like help with?I need help understanding the steps to create a responsive page. If the instructions state 'Mobile: 375px. Desktop: 1440px' and provide two UI screenshots, does this mean any screen size below 375px will appear as the given mobile design, and any screen size above 375px will appear as the desktop design?
Community feedback
- @rough-diamond213Posted 4 months ago
it's best you use rem for your front size compared to pixel. check out this article https://fedmentor.dev/posts/font-size-px/#top
Marked as helpful0 - @DarkMoonLitPosted 4 months ago
Hi, You did a great job at this challenge, the design looks pretty similar. To attain the length of a webpage, set height to 100vh in body. As for your question about the screen size, I'm not sure since some mobile screens are above 375px.
0 - @josifermaodevPosted 4 months ago
Congratulations on your project it turned out really well 🥳
Your project very similar to the design provided!
And explaining your doubt, a media query checks the specified condition and applies the styles defined within it only if the condition is true.
Exemplos:
1. Adjust style for screens smaller than 599px:
@media (max-width: 599px) { body { background-color: lightblue; } }
In this example, the body background will change to lightblue on screens with a width of 600px or less.
2. Adjust style for screens larger than 600px:
@media (min-width: 600px) { body { background-color: lightblue; } }
In this example, the body background will change to lightgreen on screens with a width of 600px or more.
3. Adjust the style for screens between 600px and 1440px wide:
@media (min-width: 600px) and (max-width: 1440px) { body { background-color: lightblue; } }
In this example, the body background will change to lightblue on screens with width between 600px and 1440px.
Applying to your reality: 🙏
In the case of this project, you need to make a mobile screen where its base is 375px, but you need this design to behave the same way on all mobile devices. If I'm not mistaken, the largest mobile screen is currently 430px, so your media query would look like this:
@media (max-width: 430px) { body { background-color: lightblue; } }
Then all screens with 430px or less will display the styles you specify. Above 430px, the conditions you highlighted in the CSS database outside of the media query will be valid.
If you have any further questions or need help, I'll be happy to answer them!
I hope this helps!
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