Results 1 to 8 of 8
  1.    #1  
    I'm trying to call an image from a sub-directory, but for some reason it's not working.

    Code:
    <img style="position:absolute;" src=". ./icons/test.png}"></img>

    If I put the image in the root directory, everything works fine. But I'm OCD about organization and it would be a lot better if I could put the images in a folder and still be able to display them.

    Code:
    <img style="position:absolute;" src="test.png}"></img>
    hit up that thanks button
  2. #2  
    Use an 'icons' directory at the same level as your 'app' directrory and then this will work.

    Code:
    <img  style="position:absolute" src="icons/test.png" />
  3. #3  
    or put icons under images and use images/icons/test.png (no .. )
  4. #4  
    the ./ thing goes up a directory, and whenever you use it, its just ./ not . ./
  5. #5  
    Oops, I posted that from my old account, sorry!
    Just ignore that last post.

    the ./ thing goes up a directory, and whenever you use it, its just ./ not . ./

    Edit:
    it's ../ not ./
    Last edited by thomascoe; 12/08/2009 at 05:54 PM. Reason: Typo
  6. Daemon's Avatar
    Posts
    796 Posts
    Global Posts
    809 Global Posts
    #6  
    That's exactly wrong
    ./ is the current directory ../ is the parent directory.

    One thing I see wrong in the OP's post is a space between the two dots.
    He's got . ./ instead of the correct ../

    ian
  7. #7  
    oh, oops. I didn't even notice I forgot the other dot, I was typing that on my Pre and forgot to include it :\
    Last edited by thomascoe; 12/08/2009 at 05:56 PM.
  8.    #8  
    The space between the two dots was intentional. If I kept the dots together "http://forums.precentral.net/" would be inserted into my post.

    Thanks for the suggestions , I'll go try them out.
    I've actually already fixed my problem by using CSS to format the images instead of HTML.
    hit up that thanks button

Posting Permissions