The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Uploaded images to webserver. Now they won’t display…
Hey guys,
So I’m in the process of uploading my images to the webserver, via WinSCP. I’ve got them loaded to the address http://info202.info/mrobinett/web/images/*imagename*.
I’ve replaced the fixed links with the relative links, but I can’t get the images to display. Any thoughts? Am I not linking the files properly?
Ex: the "background image" is set to:
<div id="bg_image"> <img style="width: 100%; height: 100%;" src="background.jpg"/> </div>
…but to no avail.
Thanks everyone.
Your line was:
<img src="../images/background.jpg" style="width: 100%; height: 100%;">
It should be:
<img src="images/background.jpg" style="width: 100%; height: 100%;">
As a side note, you should really be applying that image to the div itself.