Forums / General Questions / PIE.htc location - how do I know where the relative path to the html is?

PIE.htc location - how do I know where the relative path to the html is?

Views: 2,285

Results 1 to 4 of 4
4 Sep 2012, 1:51 PM
#1
crazysarah avatar

crazysarah

New Zenner

Join Date:
May 2012
Posts:
45
Plugin Contributions:
0

PIE.htc location - how do I know where the relative path to the html is?

Hi there, I'm trying to use the css3 PIE.htc file for making nice rounded corners on IE.

I've read all the posts on this site relating to it and tried all diferrent combinations of path and I've also nowgot the PIE file in loads of folders but no-matter what I can't seem to get it to get it to work on IE8.

I'm using a virtual machine to view the site which is on my localhost (or 169.254.107.215 as my virtual machine calls it), here's the code I'm trying:

.rounded {
	border: 1px solid #ccc;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	border-radius: 10px;
	-moz-box-shadow: 2px 2px 3px #666;
	-webkit-box-shadow: 2px 2px 3px #666;
	box-shadow: 2px 2px 3px #666;
	font-size: 20px;
	padding: 4px 7px;
	outline: 0;
	-webkit-appearance: none;
	width:250px;
	position: relative;
	behavior: url(PIE.htc);
}
<div class="rounded">stuff stuff stuff</div>

What am I doing wrong? Please help me :(

5 Sep 2012, 1:43 AM
#2
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: PIE.htc location - how do I know where the relative path to the html is?

crazysarah:

behavior: url(PIE.htc);

I'm not sure if it'll help or not, but I've recently seen a reference about changing the line above to

behavior: url(PIE.php);

If that doesn't fix it, the following link may provide a few more clues/tips/ideas.

http://stackoverflow.com/questions/7077331/help-with-rounded-corners-css-webkit-ie8

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

5 Sep 2012, 2:04 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: PIE.htc location - how do I know where the relative path to the html is?

It's relative to the "root" of your site, ie the same folder as the main index.php file that people hit to access your storefront.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 Sep 2012, 9:08 AM
#4
crazysarah avatar

crazysarah

New Zenner

Join Date:
May 2012
Posts:
45
Plugin Contributions:
0

Re: PIE.htc location - how do I know where the relative path to the html is?

Yeah ppl thanks for the responses. @RodG thanks, I had tried that as well as a few other paths where I'd also stuck the file. Thanks for the link i'd been on stackoverflow but hadn't read this post.

@DrByte I had stuck the file in every conceivable folder, and the where index.php was one of the first places I'd tried. Or at least I thought so. Turns out that was the problem. D'oh.

Thanks again, sorry for wasting your time. Blame Bill Gates :)