cluce Posted May 21, 2009 Share Posted May 21, 2009 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 https://forums.phpfreaks.com/topic/159122-solved-images-are-not-displaying-on-all-pages-in-sub-folders/ Share on other sites More sharing options...
Axeia Posted May 21, 2009 Share Posted May 21, 2009 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 https://forums.phpfreaks.com/topic/159122-solved-images-are-not-displaying-on-all-pages-in-sub-folders/#findComment-839161 Share on other sites More sharing options...
cluce Posted May 21, 2009 Author Share Posted May 21, 2009 yes I figure that. I am justs going to redesign my layout using css and div tags. I guess i was bieng lazy. Link to comment https://forums.phpfreaks.com/topic/159122-solved-images-are-not-displaying-on-all-pages-in-sub-folders/#findComment-839218 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.