How can I get IE7 to see an HTC file in the same directory as my CSS?


Tags: css,internet-explorer-7,directory-structure,html-components

Problem :

The web design company I work for has a development side, and a published side for their client sites. For dev sites, the CSS is stored in a directory such as /software-1.5/templates/099/themes/theme-name/theme.css with PIE.htc stored in the same directory. The index page (and all other pages) are stored in the /software-1.5/ directory. However, once the site is published, the templates/099/... part will change to something else.

When I use behavior: url('PIE.htc') in my theme.css file, IE7 apparently tries to find the HTC file in the base directory, and not the CSS directory. How can I make IE7 look for the PIE.htc file in the same directory as the CSS?



Solution :

Maybe it does help if you're setting the behavior not within the CSS but within the HTML page in the head section. I don't know of a possibility to make IE use the path of the CSS.


    CSS Howto..

    How do I make a certain text style larger?

    How to use a full width image as border between content and footer

    How Do I Make a “Trickless”, Cross-Platform CSS-Based Same Column Height?

    How to prevent default title behavior with CSS or JavaScript [duplicate]

    text over horizontal line…How do I make the line gradient?

    How can I make these CSS absolute positions work in IE?

    How to add a google map icon to this code?

    Positioning in CSS : How to make an absolute-positioned content display outside of its relative-positioned parent?

    How to prevent from loading a css and a js sheet at only one Rails controller?

    How to make more divs appear when hovering over one div?

    How do you get the height of a form div + error messages after hitting the submit button in javascript?

    How to make website change its layout of image/text when the browser dimensions are changed?

    Google Font API uses browser detection. How to get all font variations for font-face

    how to implement “blog” page in HTML/CSS? [closed]

    How to make jQuery target and attach a plugin call to hundreds of CSS ID's with an ID number at the end of them?

    How to make a text flash in html/javascript?

    how to modify height of a div when hover it and with transition (priority of CSS without Javascript)

    How can I position two to always be side by side

    How to create a border that will outline div minus the margins

    How to set a timer for CSS animation-timing-function?

    How to apply a class in the current slide using bxslider?

    How to put the footer at the bottom of the visible page?

    How to shift element upwards to it's variable height using css

    How to draw image dynamically on a canvas line between two cells

    How to make images always relative to a div using CSS

    How can I hide a div completely from HTML DOM?

    How to change my online store template in dbdirector ecommerce platform

    How to align the bottom of two left- and right aligned texts with bottom of parent container?

    How to add a background image or theme through CSS?

    How to make menu bar with nested submenu css