Design comparison
Solution retrospective
Hi there š, Iām Spirit and this is my solution for this challenge. š Difficulties :
- Adding Multiple SVGs to the background was quite difficult for me.
My approach :
-
I tried to add SVGs in the html and then give it a
position
andz-index
to add both the top & bottom SVGs but it didn't worked properly because when i stretched the page to check its responsiveness it failed the SVGs dislocated from their prior position. -
Then I seeked help from my community & got to know about specifying Multiple Backgrounds in CSS Ruleset and used
background-image
property in the body tag and separated both SVGs with commas and specify the properties related to backgrounds using the same. Then it got fixed.
I am still unsure of the thing that is this the only best approach to add multiple backgrounds or SVGs in the background ?
Any suggestions on how I can improve and reduce unnecessary code are welcome!
Thank you. šāļø
Community feedback
- @sankalp475Posted 11 months ago
So beautiful, so elegant just looking like wow
Marked as helpful2
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