Log in

View Full Version : Weird Folder/Stylesheet Behavior???



BekahRuth
01-19-2007, 02:16 AM
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)

benniaustin
01-22-2007, 06:04 PM
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">