Results 1 to 2 of 2

Thread: Weird Folder/Stylesheet Behavior???

  1. #1
    Join Date
    Jan 2007
    Location
    Anchorage, Alaska
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Weird Folder/Stylesheet Behavior???

    I have now been able to create a template and webpage that utilizes conditional comments to choose the correct stylesheet. However, I have noticed a weird behavior in which a page uploaded to the website works fine unless I place the same page inside of a folder. When the file is placed inside the folder, the IE browser seems to ignore the conditional comments. How do I correct this?

    Here is the first file, which works: http://tehome.net/sale3.html

    Here is a copy of the sale file inside a folder: http://tehome.net/sale-stuff/sale4.html (which ignores the conditional comments)

  2. #2
    Join Date
    Dec 2006
    Location
    Twin Cities, MN
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Just use the full path to link the stylesheet...

    Right now you're using:
    <link href="ie-stylesheet.css" rel="stylesheet" type="text/css">

    on the first page, (http://tehome.net/sale3.html) it's pulling in:

    http://tehome.net/ie-stylesheet.css

    on the second page, (http://tehome.net/sale-stuff/sale4.html) it's pulling in:

    http://tehome.net/sale-stuff/ie-stylesheet.css

    which does not exhist.

    if you hard code the full path as such it will always pull from the correct location:

    <link href="http://tehome.net/ie-stylesheet.css" rel="stylesheet" type="text/css">

Bookmarks

Posting Permissions

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