Create a Web Site on a CD

Discussion in 'HTML & Website Design' started by adcents, Jul 22, 2008.

  1. #1
    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?
     
    adcents, Jul 22, 2008 IP
  2. Yousif

    Yousif Banned

    Messages:
    233
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Dude, I don't know the answer but what you said rhymed! Nice haha. :rolleyes:
     
    Yousif, Jul 22, 2008 IP
  3. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #3
    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.
     
    deathshadow, Jul 22, 2008 IP
  4. Sunlust

    Sunlust Active Member

    Messages:
    448
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #4
    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.
     
    Sunlust, Jul 23, 2008 IP
  5. LeetPCUser

    LeetPCUser Peon

    Messages:
    711
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Try taking out the /. That might be going to the root drive.
     
    LeetPCUser, Jul 23, 2008 IP