Design comparison
SolutionDesign
Solution retrospective
Any feedback is welcome. Thank you!
Community feedback
- @MelvinAguilarPosted over 1 year ago
Hello there ๐. Good job on completing the challenge !
CSS ๐จ:
-
Try this to set the two circles:
body { background-position: right 52vw bottom 35vh, left 48vw top 52vh; }
-
To center the component in the page, you should use Flexbox or Grid layout. You can read more about centering in CSS here ๐.
Using flexbox layout:
body { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
Using grid layout:
body { min-height: 100vh; display: grid; place-content: center; }
And remove this:
.container { /* margin-top: 250px; */ }
CSS Reset ๐:
-
You should use a CSS reset. A CSS reset is a set of CSS rules that are applied to a webpage in order to remove the default styling of different browsers.
CSS resets that are widely used:
Happy coding!
Marked as helpful1 -
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