Display images in an img src

Discussion in 'HTML & Website Design' started by Philosophaie, Jun 4, 2014.

  1. #1
    I can not get the image to display.
    <style>
    #movingbox {position:fixed; top:30%; right:40%; height:40%; width:20%; overflow:scroll; z-index: 50; background-color:lime;}
    </style>
    <div id="movingbox">

    <a href="http://philosophaie.com/htmlphp/movingboxes/Arundel.htm">
    <img src="../htmlphp/movingboxes/images/Arundel_Castle.jpg" width="100px" height="100px" alt="Arundel Castle" />
    </a>

    //I have other pictures that also do not show
    </div>
    The jpg picture resides in "/htmlphp/movingboxes/images" of the server. I tried putting just Arundel_Castle.jpg with no path and moving the jpg file in with the htm files instead of images but that did not work either.
     
    Last edited: Jun 4, 2014
    Philosophaie, Jun 4, 2014 IP
  2. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #2
    Are you more than one deep in subdirectories? If so you might have to use just "/" instead of "../" -- or "../../." -- though really if you have to use ../ in the first place, your directory structure is likely not well thought out.
     
    deathshadow, Jun 5, 2014 IP