
Re: PIE in action ! Send your website URL
I totally
love this library!
I discovered it two weeks ago and made this new look for an
Ecclesiact-powered website last week:
Westmount Park ChurchRather than have to add the behavior line for each class employing it, if a visitor uses IE then the web site system automatically adds a stylesheet rule like this:
Code:
<style type="text/css">
/*<![CDATA[*/
.css3 { behavior: url(/css/pie/1.0.b4); }
/*]]>*/
</style>
... then for each element that uses a css3 attribute has an extra classname of 'css3' given, like this:
Code:
<div class="css3 box">
<h1 class="[color=#FF0000]css3[/color]">Westmount Church</h1>
<p>Details go here</p>
</div>
This is because I automate the generation of the path to css3pie through a dynamic cache-control mechanism and don't want my user-gnerated style sheets to end up with references to old versions of the pie library.
I used to dread generating all those graphica elements in paintshop and then having a customer ask me to try a different background colour - not any more!
And the code is a lot mor semantic now too, thanks guys!
Hope this idea is of use to someone out there!