Design comparison
SolutionDesign
Solution retrospective
I found putting the elements in the middle of the screen a bit challenging. I'm sure of all areas of my code
Community feedback
- @develobaPosted about 2 years ago
👋 Hi @DoyeDesign, good job on this challenge!
If you don't mind, I'll give you some recommendations about your code:
- You closed your two containers elements (div) after closing the section element, which is the father element.
- It is recommended to use semantic tags for HTML document. For example, the principal content should be in a main tag and the image could be wrapped in a figure element to give more semantical meaning.
I hope this will help you! Happy coding! 😊
Marked as helpful1@DoyeDesignsPosted about 2 years ago@develoba Thank you. it took me a while to see it though. I corrected it it and put all the contents in the main tag
0 - @DeolabestPosted about 2 years ago
Hey @DoyeDesigns, Congratulations on completing this challenge!
Here is my feedback:
- To center items at body of a page, just do this:
body { min-height: 100vh; align-items: center; justify-content: center; display: flex; }
- It's not a good practice to use px to set font-size. Instead use rem units, they are great since they adapt better to the font-size the user will set in the browser settings. You can convert from px to rem here:
https://pixelsconverter.com/px-to-rem.
Keep doing a good job!
Marked as helpful0@DoyeDesignsPosted about 2 years ago@Deolabest Thanks for your feedback. I tried it and it worked. cheers
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