butzie225 Posted September 6, 2009 Share Posted September 6, 2009 Ok. I have a question, I have this code: <link href="./default.css" rel="stylesheet" type="text/css" media="screen" /> <div id="sidebar1" class="sidebar"> <ul> <li> <h2><a href="./bots/">Bots</a></h2> <ul> <li><img src="./images/icons/combat.png" alt="xFighter Image"/> <a href="./bots/fighter/">xFighter </a><img src="./images/star.gif" alt="Star" title="Top-Seller"/ ></li> <li><img src="./images/icons/slayer.png" alt="xFighter Image"/> <a href="./bots/slayer/">xSlayer</a></li> </ul> </li> </ul> </div> In my main directory, file name called leftmenu.php. Now, in /bots/index.php I call: <?php include('../leftmenu.php')?> But, whenever I open my bots/index.php, all the images are the text alts, how do I fix this? Quote Link to comment Share on other sites More sharing options...
saltedm8 Posted September 7, 2009 Share Posted September 7, 2009 as long as your roots are right, in your html you have ./images/icons/combat.png on all your image roots, you are missing a second dot ../images/icons/combat.png Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.