gjhuerte / ibinex-i

Ibinex Website made by Team I and edited by Team II
https://ibinex-i-design.herokuapp.com/
2 stars 0 forks source link

Some Images are not loading #1

Closed rlbayeta closed 6 years ago

rlbayeta commented 6 years ago

Images on the site do not load.

the current element of the images goes like this

[ 1 ] <img src="/img/about-us/r1.png" class="img-fluid">

or like this

[ 2 ] <img class="col-lg-5 d-none d-lg-block pc" src="http://localhost/ibinex-i/public/img/pc.png" alt="pc image">

--- but that is not good.

When it comes in to the time where you will deploy the site it is not good to put a direct link even though it is located in your directory.

The problem in the second one is the site treat it and looking in the different link it looks in "example.com/img/ . . . .png"

to avoid this you should put . (dot) at the start to tell the page to start looking in reference to the current directory of the file

   this dot here
        V

<img src="./img/about-us/r1.png" class="img-fluid">

image