Design comparison
Solution retrospective
I have difficult I don't know how to put body svg background
Community feedback
- @correlucasPosted about 2 years ago
๐พHello Mal Thidar, congratulations for your new solution!
โ Answering your question:
To add the circles (bottom/top) in the background, the best way is by using
background-image
to manage it since adding them to thebody
you make sure it will be under everything, see the properties below and see that the comma inside each properties declare the single modification for each circle separated.body { background-color: hsl(185deg, 75%, 39%); background-image: url(./images/bg-pattern-top.svg), url(./images/bg-pattern-bottom.svg); background-repeat: no-repeat, no-repeat; background-position: top -500px left -400px, bottom -700px right -250px; font-family: 'Kumbh Sans', sans-serif; /* background: linear-gradient( hsl(185, 75%, 39%), hsl(185, 75%, 39%)), url(./images/bg-pattern-top.svg); */ height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; color: hsl(229, 23%, 23%); }
โ๏ธ I hope this helps you and happy coding!
0 - @hmadamkPosted about 2 years ago
hi there again your solution looks great for the images its a bit tricky but I will feed you back on how to do them soon, scince I have to figure it out first
0 - @afaiz-spacePosted about 2 years ago
Hey thidarnyien,
- use background: url("images/filename.svg);
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