Design comparison
Solution retrospective
This is my first time coding. Any feedback will be so welcome. the most difficult part is my coding starting get messy everytime I try to change the size of the screen.
Community feedback
- @HassiaiPosted almost 2 years ago
To center a content on a page, add min-height:100vh; display: flex; align-items-center: justify-content: center; to the body. Give the main a width value of , a background-color: hsl(0,0,100%) and a padding value for all the four-sides. there is no need for display: flex and it properties in the main Give img a width:100% or max-width:100%; There is no need to give .txt a width value , it will the take the width of the main. give .text a padding top and a padding bottom value. There is no need to give .inner a width value and main a margin value in the media query. Hope am helpful HAPPY CODING
Marked as helpful0
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