Design comparison
Solution retrospective
I have learned to work with the z index
What challenges did you encounter, and how did you overcome them?I have a problem showing my work on github.
When I view my code with live server. Everything seems fine. Whenever I upload my stuff to the repo however, the images don't appear.
What specific areas of your project would you like help with?I have a problem showing my work on github.
When I view my code with live server. Everything seems fine. Whenever I upload my stuff to the repo however, the images don't appear.
Community feedback
- @danielmrz-devPosted 6 months ago
Hello there!
Congrats on completing the challenge! ā
Your solution looks great!
The background pattern with the circles is a bit tricky, but you don't need separate containers to create it as it's possible to work with multiple background images at the same time. Here's how you can do it:
š Add this to the body:
background-color: var(--Dark-cyan); background-image: url("./images/bg-pattern-top.svg"), url("./images/bg-pattern-bottom.svg"); background-repeat: no-repeat, no-repeat; background-position: right 52vw bottom 35vh, left 48vw top 52vh;
- Also , when using the tag
<img>
, make sure to set the correct path, otherwise your code won't be able to find the image. And if your code can't find it, it won't show.
š This is your code:
<img src="/images/bg-pattern-top.svg" alt="" class="bg-top1">
š And here's the update with the correct path:
<img src="./images/bg-pattern-top.svg" alt="" class="bg-top1">
The difference is just a dot but it's enough to prevent your image from showing.
I hope it helps!
Other than that, you did an excelent job!
0 - Also , when using the tag
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