Need to direct to css and imag files out side directory?

Discussion in 'HTML & Website Design' started by saturn100, Nov 27, 2011.

  1. #1
    I cant believe I have never done this before

    I have a site set and working fine

    I am putting in a members area of which the directory is mysite.com/members

    Now all css files are in the first directory (or folder) that my domain points to and my images file is there too
    mysite.com/images.

    Is there anyway I can link the folders to the parent folder so it will read the css and images or do I need to transfer the images folder to the members folder

    Thanks
     
    saturn100, Nov 27, 2011 IP
  2. Toycel

    Toycel Peon

    Messages:
    243
    Likes Received:
    11
    Best Answers:
    4
    Trophy Points:
    0
    #2
    no you can leave them in the root folder try using "../styles.css" in your head tags linking the CSS and same for the Images. If this doesn't work you can always use the full URL of the folders and files.
     
    Toycel, Nov 27, 2011 IP
  3. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #3
    The current folder is
    ./

    The parent folder is
    ../

    The parent folder's parent folder is
    ../../
    (etc.)

    The root folder of the site is
    /
     
    Rukbat, Dec 1, 2011 IP
  4. leanocodes

    leanocodes Member

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #4
    Transfer everything using dreamweaver, it has auto synchronization, linking and updating of files. :)
     
    leanocodes, Dec 1, 2011 IP
  5. creativewebmaster

    creativewebmaster Active Member

    Messages:
    654
    Likes Received:
    7
    Best Answers:
    4
    Trophy Points:
    78
    #5
    Yes. You can make outside of the directory but, you must have to change the path where you will point the image and css file.
     
    creativewebmaster, Dec 2, 2011 IP