Design comparison
Solution retrospective
Hey Guys, I just completed the product preview card project. I'm a newbie and my code is filled with errors and bad practices. I'll love criticisms and reviews on the code and how I can improve in the future. My questions for this challenge are:
- I found media queries difficult to understand. two images were provided for the desktop and mobile designs respectively. I didn't know how to change the image responsively based on the screen size. I'll need all the help I can get on this. Thanks.
- I'll love to know more on how to handle events with JavaScript.
Community feedback
- @rockingrohit9639Posted over 2 years ago
Hey @IAmKachi
Media queries are difficult at first but when you get to know about they become a lot easier. You can refer to this link to learn about media queries -> Media Queries
Firstly learn about these two media queries and more than half of the work will be done -
@media only screen and (min-width: 900px) {} @media only screen and (max-width: 900px) {}
- You should use semantic HTML tags, they define the meaning to both the developers and browsers. Some tags are - `main, section, article, header, footer, etc. To learn more HTML, CSS or JavaScript follow this link - w3schools
1 - @farukingPosted over 2 years ago
Good effort! you can only get better.
- I will suggest you visit this link to learn about media queries, event handler and much more.
1 - @tolydotethPosted over 2 years ago
Hey, your image and text move all over the place when you resize the window. even on the solution page you can see that the picture is bigger than the text section.
You did not apply the font on the button,
It's not changing size when I resize my screen to mobile.
Also, you used some JS in the end, not sure why.
1
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