Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    May 2011
    Posts
    122
    Thanks
    23
    Thanked 0 Times in 0 Posts

    CSS3 not able to find HTC file

    I a file titled PIE.htc and have this behavior property in my CSS(3).

    Code:
    .fancyNav{
    	/* 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?

  • #2
    Registered User
    Join Date
    Jun 2011
    Posts
    1,063
    Thanks
    12
    Thanked 241 Times in 240 Posts
    lol .htc, let me guess you are trying to get full browser support for something.


    http://stackoverflow.com/questions/7...en-im-using-ca
    read through all the comments


    I've never used .htc, but I'm sure you can find an answer there
    Last edited by Sammy12; 11-20-2011 at 07:09 PM.

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,620
    Thanks
    6
    Thanked 1,001 Times in 974 Posts
    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.

  • #4
    Regular Coder
    Join Date
    May 2011
    Posts
    122
    Thanks
    23
    Thanked 0 Times in 0 Posts
    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.

  • #5
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,620
    Thanks
    6
    Thanked 1,001 Times in 974 Posts
    The the path is incorrect. How is your file structure?

  • #6
    Regular Coder
    Join Date
    May 2011
    Posts
    122
    Thanks
    23
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

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