Design comparison
SolutionDesign
Community feedback
- @BlackpachamamePosted 9 months ago
Greetings! you have done a great job š
š Some suggestions
- I recommend doing a small
reset
to the styles that come by default in the browsers. To do this, you can apply a couple of properties to the universal selector*
, with this you will make your site look the same in all browsers - I leave you the task of researching the
reset CSS
and thebox-sizing: border-box
- Instead of using
position
to center your content in the center of the screen, you can use theflexbox
properties in thebody
:
body { background-color: black; min-height: 100vh; margin: 0; display: flex; justify-content: center; align-items: center; } main { background-color: #222222; /* position: absolute; delete */ /* top: 50%; delete */ /* left: 50%; delete */ /* transform: translate(-50%, -50%); delete */ width: 250px; height: 420px; text-align: center; border-radius: 10px; }
Marked as helpful0@LuizFlavioPintoPosted 9 months ago@Blackpachamame Great help my friend!!! going to study those points. Appreciate you
1 - I recommend doing a small
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