Design comparison
Community feedback
- @correlucasPosted about 2 years ago
๐พHello @moe-ka, congratulations for your new solution!
๐ฏ Your solution its almost done and Iโve some tips to help you to improve it:
To have more control over the two svg circles its better you insert it in the
body
, instead of importing that with a div.<div> <img class="bg up" src="images/bg-pattern-top.svg" alt="bg-top"> </div>
To add the two
wave
svg background images in the (top/bottom),, the best way is by usingbackground-image
to manage it since adding them to thebody
you make sure it will be under everything, to manage different images inside a single css property asbackground-image
you use the comma inside each properties declare the single modification for each circle separated. See the code below to see your solution with those backgrounds applied:body { background-image: url(images/bg-pattern-top.svg), url(images/bg-pattern-bottom.svg); background-position: left -262px top -236px, right -304px bottom -300px; background-repeat: no-repeat, no-repeat; background-attachment: fixed, fixed; background-size: contain, contain; font-size: 1.125rem; font-family: var(--font); height: 100vh; display: grid; justify-content: center; align-items: center; background-color: var(--color-Darkcyan); position: relative; overflow: hidden; }
โ๏ธ I hope this helps you and happy coding!
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