Page 1 of 1

Image not displaying...

Posted: 2017-06-24 21:30
by katekavs
Hello,

I've been fiddling with this for hours and can't work out what I'm doing wrong. When I use the url http://example.com/images/fbcircusicon.jpg the image appears online, but when I try to put it in the code for my index page as <img src="images/fbcircusicon.jpg"> then all I get is the empty box icon. Can someone help?

Thank you!
:)

Re: Image not displaying...

Posted: 2017-06-24 22:56
by boco
You might have to use <img alt="" src="/images/fbcircusicon.jpg">.

"images/fbcircusicon.jpg" means "the file fbcircusicon.jpg that is in a subdirectory images from the current location"

"/images/fbcircusicon" means "the file fbcircusicon.jpg that is in a subdirectory images from the root directory"

The alt= argument specifies the alternate text (if the image failed to load) and is also required.

Re: Image not displaying...

Posted: 2017-06-25 09:10
by katekavs
That's not working either I'm afraid :(