How do you use directorys in HTML?

Discussion in 'Free Hosting' started by Glitchy, Sep 23, 2007.

Thread Status:
Not open for further replies.
  1. Glitchy

    Glitchy New Member

    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    0
    If anyone can figure this out for me, then I'd be thanks. Say my index was in www, but all my files are in the glitchy folder. How do I point to that in HTML? I can't get my CSS or my pages to work.
     
  2. Chris73

    Chris73 New Member

    Messages:
    5,359
    Likes Received:
    1
    Trophy Points:
    0
    unless it's a 2nd page. Take them out of any folders that you might have them in. Minus the Images folder. They can all stay in there. should look something like this. home/name/public_html/index.html
    home/name/public_html/css style


    Those are examples.
     
  3. Glitchy

    Glitchy New Member

    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    0
    That still doesn't work. But I did move my CSS file. Here is my header:

     
  4. Chris73

    Chris73 New Member

    Messages:
    5,359
    Likes Received:
    1
    Trophy Points:
    0
    And your style2.css is in the public_html folder and not in a folder in the public_html?
     
    Last edited: Sep 23, 2007
  5. Glitchy

    Glitchy New Member

    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    0
    Well, it was in the glitchy folder, but I thought you told me to move it.
     
  6. *Face

    *Face New Member

    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    0
    In a web browser, /public_html/ is just one slash "/" for you. Replace all public_html with that one slash and you should be fine.
    Edit:
    ... I should clarify.

    Move all your websites files from your "glitchy folder" to public_html/.

    Then, delete "public_html" (keep the slash at the end of it) from all your paths, and everything before. So:

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head><link rel="stylesheet" type="text/css" href="home/name/public_html/style2.css ">
    <HEAD><link rel="shortcut icon" href="/public_html/images/sll.ico" type="image/vnd.microsoft.icon">
    <link rel="icon" href="/public_html/images/sll.ico"" type="image/vnd.microsoft.icon">
    <title>Super Luigi Land: All about the guy in green</title>
    <body>
    Should look like:
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head><link rel="stylesheet" type="text/css" href="/style2.css ">
    <HEAD><link rel="shortcut icon" href="/images/sll.ico" type="image/vnd.microsoft.icon">
    <link rel="icon" href="/images/sll.ico"" type="image/vnd.microsoft.icon">
    <title>Super Luigi Land: All about the guy in green</title>
    <body>
     
    Last edited: Sep 23, 2007
  7. Glitchy

    Glitchy New Member

    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    0
    Thanks! It looks great now!
     
Thread Status:
Not open for further replies.

Share This Page