Correct paths, Images wont load...

admin

Administrator
Staff member
Hello. I am trying to place images on my website and know the basics of html. Using the normal <br />
<br />
<img src=http://www.htmlforums.com/archive/index.php/"images/picture.jpg"> is not working for me. And I know to add the sub-folders with the "/" etc if needs be. <br />
<br />
The only way I have had it work is to select "show file" than right click on it to go to the properties and copy the link there. But that way, you can't see the pics w/o logging into my control panel (cPanel X).<br />
<br />
My server is Linux, does that mean anything?<br />
<br />
PLEASE HELP, I need to get this done asap.<br />
<br />
Reply to : <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --><!--content-->that should work unless images is not in your root folder.<br />
<br />
if in doubt just insert the whole url<!--content-->What you have should work, as long as your image is named picture.jpg, and in a direcory named images, which is in the same directory as the .html document. Also, make sure that all upper/lower case is correct, since everything is case sensitive.<br />
<br />
Also, it is good practice to have a width=? and height=? as well an alt="" in the img tag...like this:<br />
<br />
<img src=http://www.htmlforums.com/archive/index.php/"images/picture.jpg" width="???" height="???" alt="picture description" /><br />
<br />
fill in the ???'s with the proper width and height, and the alt="" with the proper description<br />
<br />
EDIT: You're too fast for me scoutt<!--content-->Seems simple doesn't it? But, no. It doesn't work with the whole url either or using the width, height etc. *sigh* I'm off to email my server provider w/ the problem even though they prob have no clue!<!--content-->it has nothign to do with the server. it is all your browser<br />
<br />
do you have a url or code we can see? something simple you have had to miss.<br />
<br />
Aaron: fast, but you were more thorough :)<!--content-->hmmm...a link WOULD be helpful...but also double check that the files are uploaded, and are there. Simply type the full url of the picture in your browser like this:<br />
<br />
<!-- m --><a class="postlink" href="http://www.yoursite.com/images/picture.jpg">http://www.yoursite.com/images/picture.jpg</a><!-- m --><br />
<br />
If that does not work, your image has not been uploaded properly. Remember...it is ALL case sensitive, ie Picture.jpg is not the same as picture.jpg, which is not the same as picture.JPG<!--content-->When you upload the images it should be done as binary otherwise the file gets corrupted. The clue is that the file on the server is smaller then the original copy still on your hard drive.<!--content-->
 
Back
Top