Design comparison
Solution retrospective
Hi! π It's my first project here and one of my first projects at all. I didn't know how to correctly display svgs in this project. I tried as a background-image but it didn't work so I pasted svg tag. Also, I had difficulty with placing svgs with top, left, right, and bottom and I used media for mobile. It'll be great to hear some feedback from you.
Thanks in advance! π
Community feedback
- @analuzcervantesPosted over 3 years ago
Hi! π
Welcome to the frontendmentor community! π
Why don't you try to put your svg in the body in your style file, it would be something like this:
background-image: url(/images/bg-pattern-top), url(images/bg-pattern-bott);
For the position you can use
vw
andvh
background-position: right 50vw bottom 50vh, left 50vw top 50vh;
Here I leave you more information about vw and vhBe well! π»πΎ
2@fytrwPosted over 3 years agoThanks for your reply! so I changed svgs in the index.html to background-image in the body and it works a lot better. Before this change I was using vw and vh but for placing svg tags and it didn't work that good as now.
1@ApplePieGiraffePosted over 3 years ago@fytrw
Hey, Mikolaj! π
Just wanted to say congratulations on completing your first Frontend Mentor challenge! π Overall, your solution looks great and the background images are now rather well-placed! π
Keep it up! π
Keep coding (and happy coding, too)! π
1
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