Design comparison
Solution retrospective
I implemented this exercise completely in the system. But when I upload to the git, the icon view is not displayed. please guide me
.img-m::after { background-color: hsla(178, 100%, 50%, 0.5); content: url(/icon-view.svg); position: absolute; display: flex; align-items: center; justify-content: center; inset: 0; opacity: 0; transition: all 2s ease-in-out; }
Community feedback
- @Pycoder300Posted 6 months ago
Try adding ./images before the icon link inside the url if the icon isn't displaying.
1@Pycoder300Posted 6 months ago@Zaraban6 url(./images/icon-view.svg). Have you added the dot before the slash on images?
Try updating this: background: center url(/images/icon-view.svg) no-repeat ;
with
This: background: center url(./images/icon-view.svg) no-repeat ;
0@Zaraban6Posted 6 months ago@Pycoder300 Yes, I did it but it didn't work. The same code is in vscode without any problem
0@Zaraban6Posted 6 months ago@Pycoder300 Yes, I did it but it didn't work. The same code is in vscode without any problem!!!
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