
Design comparison
Solution retrospective
I am proud of this project because I managed to use Figma rulers in positioning the background svgs.
What specific areas of your project would you like help with?The bottom SVG is deviating from the center on other browsers or full screens. It seems it's only working as expected at the min-width of 1280px in chrome dev tools yet I have set 992px in my code.
Community feedback
- @DangelobastPosted about 2 months ago
Great work, I just did a quick review of your page and found something you should keep in mind and get a better positioning of your circle decorations.
You are using pixel units which are fixed, meaning it won't adapt as you shrink the page. Think of it as if you are telling to your circle to always stay there to a fixed position and size, it won't adapt to what's coming. A great solution for this is using vh and vw units which are relative to the viewport, meaning if your viewport shrinks your units will help it shrink and not stay forever fixed.
You can watch this behavior with your developer tools in chrome, go to your media query set to 992px delete those two fixed properties, and type this or paste it:
background-position: -40vw -190vh; background-size: 100vw;
Watch how it will try to adapt dynamically, you don't need to use that code since is just a simple demonstration of this behavior!
Hope this helps!
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