Single price-grid component master for Desktop and Mobile Devices
Design comparison
Solution retrospective
I'm open for corrects. if you need me to do adjustment I will
Community feedback
- @AdrianoEscarabotePosted almost 2 years ago
Hi Oyasi Kelly Ogheneoghagha, how are you? I really liked the result of your project, but I have some tips that I think you will enjoy:
To improve the structure of the html document, prefer to wrap all the content with the
main
tag, since this challenge is just a component, it needs amain
tag to know what the main content of the page is!A good practice to center content is using
grid
orflex-box
, avoid using margin or padding to make placements, use only in the latter case! we can do it like this:Flex-box:
body { display: flex; align-items: center; justify-content: center; flex-direction: column; min height: 100vh; }
GRID
body { display: grid; min height: 100vh; place-content: center; }
The rest is great!
I hope it helps... 👍
Marked as helpful0@OyasikellyPosted almost 2 years ago@AdrianoEscarabote Thanks alot... It's really helpful.
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