user536158
user536158

Reputation:

Images not rendering on server

I am uploading a web page to ftp server. This page contains images with relative paths. All my images are contained in a folder called Images. A image source tag looks like this.

<img src="./images/construction_right.png" width="118" height="118" alt="under construction">

The problem is that the images are not rendering when i browse the page on the server. But when i create an ankor on the html page and click it i can navigate to the image.

Please advise.

Thank you for your time.

Edit:

FTP server:

07/16/2011 02:10PM Directory .
07/16/2011 02:10PM Directory ..
07/16/2011 02:08PM Directory images
07/16/2011 02:10PM 929 index.html

index.html:

<html>
<head>
<title>KDC SARL</title>
</head>

<body>
<div align="center"  style="border:double;background-color:#933">
    <table>
        <tr>
          <td><img src="images/construction_left.png" width="118" height="118" alt="under construction"></td>
          <td>
            <div>
                <div align="center">
                    <strong style="font-size:36px">KDC furniture website is under construction</strong>
            </div> 
          </td>
          <td><img src="images/construction_right.png" width="118" height="118" alt="under construction"></td>
        </tr>
    </table>     
<br/>
    <img src="images/girl_sofa.jpg" width="882" height="262" alt="girl saloon">
    <br/>
    <img src="images/kinwai.jpg" width="883" height="290" alt="saloon">
</div>
</body>

</html>

Upvotes: 0

Views: 158

Answers (1)

Zach Inglis
Zach Inglis

Reputation: 1257

  • Remove the ./ - that's superfluous
  • Check the case of the folder. That may be causing a weird error.

Upvotes: 1

Related Questions