Jump to content

[SOLVED] images are not displaying on all pages in sub folders


cluce

Recommended Posts

Images are on not displaying.

 

I have a webiste within a website. my structure is:

 

>webiste

-[Folder1]

---[images]

---default page

---css page

---master design page

---[Folder2]

----page1

---[Folder3]

----page1

 

the only page in this structure displaying the images correctly is

the default page. My pages in folder 2 & 3 are not displaying my images.  They are all using a master design page.

 

here is my code

 

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Disaster Recovery Information</title>
    <link href="DisRec/EmpRes.css" rel="stylesheet" type="text/css" />
        <style type="text/css">
            .style1
            {
                height: 104px;
            }
            .style2
            {
                height: 21px;
            }
        </style>
</head>
<body>
<div align="center">
        <form id="form1" runat="server">
  <table width="1110" height="710" border="1" cellpadding="0" cellspacing="0">
    <tr>
      <td colspan="2"  
            
            style="background-image:url('../Images/topbg1.png')" 
            class="style1"></td>
    </tr>
    <tr>
      <td colspan="2" style="background-image:url('../Images/bar1.png')" class="style2"><div align="left"></div></td>
    </tr>
    <tr>
      <td width="206" height="509" align="left" valign="top" bgcolor="#ADADAD"><p> <br />
      </p>
        <p align="center">
            <asp:ContentPlaceHolder ID="ContentPlaceHolder2" runat="server">
            </asp:ContentPlaceHolder>
          </p>
      </td>
      <td width="898" valign="top" bgcolor="#FFFFFF"><p align="right"> </p>
    <div>
        <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
        </asp:ContentPlaceHolder>
    </div>
     <p> </p>
    <p align="left"> </p>
    </td>
    </tr>
  </table>
    </form>
</div>
</body>
</html>

 

Link to comment
Share on other sites

It's cause you need to move up another level for subdirs (../)

Though you should just move it all to an external stylesheet as the include path would be relative to the stylesheet which always remains the same.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.