@Eileenpk
Posted
Hi Ravisingh8v, your project looks good. The reason the SVGs aren't loading might be that you are using a relative path, and you may need to use a . in front of the / to indicate that the path is relative to the root directory of the project. For example, if you have an image file stored in the assets directory at the root of your project, you could use the following path to reference the image: ./assets/images/image.jpg.
This is because Github Pages serves the website files from the docs directory by default, and the ./ in front of the / ensures that the path is relative to the root directory of the project, rather than the docs directory.
<div class="doc"><img class="doc1" src="./images/icon-document.svg" alt=""></div>
<div class="doc"><img class="doc2" src="./images/icon-folder.svg" alt=""></div>
<div class="doc"><img class="doc3" src="./images/icon-upload.svg" alt=""></div>
Hope you found this helpful!
- Let's connect on LinkedIn! - @Eileenpk
@ravisingh8v
Posted
@Eileenpk Thank you for correction