Image file src problem
So i have some images which are within folders when i hit Go live on VS code they works properly but when i open index file directly o browser the source broke
27 Replies
here's how it looks when i open it directly
tried adding
but didn't work
how about
./
oh the 2nd pic shows icon folder and your link is pointing to img folder not icons folderops sorry but ya its in the right folder
the name has
_
or is just space
between supplying and Candidates ?this workedd
i've used hypen
i have smae problem with
a video
what is the path in the code?
thanks for this man 🤧
what other options we have here?
i dot get this
when i go live on VS code it works properly
the video is
mp4
and the type in code is video/mp4
??yes
when you hover over the link in dev tools where does want to go?
you have
../
not ./
tried both
file:///img/bg/...
ok set it to
./
then open browser dev tools and open the file in new window
do you have your site live so i can check it ?it worked!!!!
not yet
thanks mate
no problem 🙂
been dealing with it for past 2 days😂
ngl it feels lil dumb after knowing what was the mistake 😂😬
with problem like this dev tools is the best thing to troubleshoot. You just open your page inpect it and check what is the actual path and then you try to correct it in your code 🙂
right got that, will surely do that
thanks again!
good luck 🙂