I am trying to create a web site on a CD. The hyper links get messed up when burned onto the CD. What should the links look like? ../folder/file.html is not working. The relative path gets mixed up with the system. How do I make the CD the root of the web site?
If your relative paths are CORRECT, it should work - what is likely biting you in the backside is your directory structure sounds incorrect by virtue of your even NEEDING to use ../ in the first place. A good rule of thumb for portability is HTML in the root, CSS in the root or a subdirectory - if you put CSS in a subdirectory images used by the CSS NEED to go in a subdirectory of /css - All paths should point 'down-tree'... Pointing up-tree is almost instantly made of /FAIL/ and an indication of overthinking the solution to a problem. But then I laugh at the people who go nuts putting all their HTML files in separate directories to make it 'easier' to maintain - when 99% of the time they are just overcomplicating it.
I do it this way: - get a CSS directory for all css files - depending on your website's size, either put index.htm in the root and other pages in directories if it's big, if your website's small like 8-10 pages, then just put pages in root too. - make images directory for all images - make a js directory for all scripts make all paths relative, that means in css to put an image on a backgorund you give it url(../images/bg.gif) for example. you get the idea.