Design comparison
Solution retrospective
It's been a while since I tried a frontend mentor project but I feel I've made a lot of growth from the first time. Please I'm very open to suggestions and or more effective ways I could have gone about this
Community feedback
- @correlucasPosted about 2 years ago
👾Hello Tammy, Congratulations on completing this challenge!
Here’s some tips to improve your solution code:
You did a good work putting everything together in this challenge, something you can do to improve the image that needs to change between mobile and desktop is to use
<picture>
instead of<img>
wrapped in a div. You can manage both images inside the<picture>
tag and use the html to code to set when the images should change setting the devicemax-width
depending of the device (phone / computer) Here’s a guide about how to usepicture
:https://www.w3schools.com/tags/tag_picture.asp
All you need to make the vertical alingmnet is
min-height: 100vh
body { min-height: 100vh; background: hsl(30, 38%, 92%); display: flex; flex-direction: column; justify-content: center; align-items: center; }
✌️ I hope this helps you and happy coding!
1 - @AdrianoEscarabotePosted about 2 years ago
Hi Tammy, how are you?
Congratulations on completing another challenge, I really liked the result of your project, but I have some tips that I think you will like:
1- Document should have one main landmark, you could have put all the content inside the
main
tag click here2- All page content should be contained by landmarks, you can understand better by clicking here: click here
I noticed that the content is not centered, we can fix it like this:
body { min height: 100vh; }
By doing this the body will fill the entire screen, and the
flex-box
will center the content!The rest is great!!
Hope it 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