Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Oct 2004
    Location
    Stillwater, OK
    Posts
    13
    Member #
    7960
    I'm afraid I don't know the jargon for this, so I'll just use an example. I'm sure it's all pretty simple, I just haven't come across it before.

    Say I have a website xyz.com that has three seperate directory / areas: xyz.com/1/ xyz.com/2/ and xyz.com/3/. How do I reference the images, master css file, etc that are in a seperate folder?

  2.  

  3. #2
    Senior Member Fallout's Avatar
    Join Date
    Aug 2003
    Location
    Richmond, Virginia
    Posts
    543
    Member #
    2748
    Code:
    <style>
    @import "/1/file.css";
    @import url(/1/file.css);
    </style>
    Just replace with your filenames of course.

    Edit: Either one will work, you don't need both.

  4. #3
    Junior Member
    Join Date
    Oct 2004
    Location
    Stillwater, OK
    Posts
    13
    Member #
    7960
    ok, great - thanks, fallout.

    So how would you reference a picture that is in the /images folder from an html file in the /1 folder, for example?

  5. #4
    Senior Member Fallout's Avatar
    Join Date
    Aug 2003
    Location
    Richmond, Virginia
    Posts
    543
    Member #
    2748
    Code:
    <img src="../images/image.jpg" alt="" />
    Using "../" should go up one dir, so then add the "images" folder name after that


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search tags for this page

directories in css

,

how to directory in css

,

what is directory in css

Click on a term to search for related topics.
All times are GMT -6. The time now is 03:40 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com