Loading ...
Sorry, an error occurred while loading the content.

Re: [NTB] trouble with file path

Expand Messages
  • loro
    Hi, ... If I understand you right.... The other one is just wrong. I guess you want to link to index.html , but from what file?
    Message 1 of 2 , Jul 4, 2010
    • 0 Attachment
      Hi,

      jimjwall wrote:
      >top most folder: A
      >subfolders: B, C, images.
      >
      >index.html is in A.
      >anyfile.html is in B.
      >anyfile2.html is in C.
      >.jpg's are in images.
      >
      ><a href="../index.html"home></a> this doesn't work.
      ><img src="../images/image.jpg"image /> this doesn't work.
      >
      >If all the files are in the top most folder, everything works fine.
      >But when moving the html files into there own folders inside the top
      >most folder nothing works at all. In microsoft notepad, the html
      >works fine when moving the html files to another folder. Also, after
      >moving the html files to another folder in notetab, notetab
      >recreates the html files in the top most folder. Does anyone know
      >how to correct this? Is there a setting that has to be set in order
      >to stop this behavior?

      If I understand you right....
      <img src="images/image,jpg" />

      The other one is just wrong. I guess you want to link to index.html ,
      but from what file?

      When you want to link to a file in another folder in the same
      directory as the current HTML file, you just need to use the folder
      name. Then you use a slash for each nested folder after that (just
      part of a normal URL)
      folder1/folder2/folder3/file.html

      '../' as you used means one folder up. You use '../' for each folder.
      Three folder up...
      ../../../file.html

      See http://htmlhelp.com/faq/html/basics.html#relative-url

      We aren't supposed to talk about HTML on this list. The original list
      owner wanted to keep topics separated. So if you want more help with
      this, please sign up for the Notetab HTML list. Just send an empty
      email to the below address and you're in. :-)
      <mailto:ntb-HTML-Subscribe@yahoogroups.com>

      Lotta
    Your message has been successfully submitted and would be delivered to recipients shortly.