View Full Version : CSS3 not able to find HTC file

11-20-2011, 04:33 PM
I a file titled PIE.htc and have this behavior property in my CSS(3).

/* Affects the UL element */
overflow: hidden;
display: inline-block;
behavior: url(PIE.htc);

But it is saying that it is unable to find the file. I have put inside the folder with the CSS, the root folder, and others but none have prevailed. What is wrong?

11-20-2011, 08:06 PM
lol .htc, let me guess you are trying to get full browser support for something.

read through all the comments

I've never used .htc, but I'm sure you can find an answer there

11-20-2011, 08:11 PM
The file path to the HTC file must be relative to the HTML file in which the behavior is supposed to be applied, not to the CSS file, as far as I remember.

12-01-2011, 10:39 PM
I've made sure the .htc file is relative to the HTML file. Still nothing, but I did use Developer tool and it has the behavior link crossed out. Checked it on a website and said it couldn't find the file, when I go to the .htc file it downloads it which tells me it's there.

12-01-2011, 10:45 PM
The the path is incorrect. How is your file structure?

12-01-2011, 11:03 PM
The CSS file is located in "/assets/css/styles.css" and then PIE.htc is located in the root folder and the index.php as well.