Forums
View unanswered posts | View active topics It is currently Wed Sep 03, 2014 1:03 am



Reply to topic  [ 3 posts ] 
 Exclude PIE rendering for an element 
Author Message

Joined: Mon Jul 25, 2011 10:26 am
Posts: 3
Post Exclude PIE rendering for an element
Hi,

one of my elements that use PIE.htc to render box-shadow is hidden by default and might be displayed using jQuery. Unfortunately, the first time this hidden element is shown, the box-shadow rendered by PIE is misplaced. Any consecutive hide/show toggles will make it render at the right place.

As I can't seem to fix this, is it possible to exclude a single element from being rendered by PIE.htc?

Something like:

Code:
.shadowed {
  box-shadow: 0 1px 6px #666;
  behavior: url(/path/to/PIE.htc);
}
#no-shadow {
  behavior: none !important;
}

Code:
<div id="no-shadow" class="shadowed">
PIE won't work here..
</div>


Tue Jul 26, 2011 8:49 am
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1441
Post Re: Exclude PIE rendering for an element
I believe that should work. Easy enough to try it...


Tue Jul 26, 2011 10:10 am
Profile

Joined: Mon Jul 25, 2011 10:26 am
Posts: 3
Post Re: Exclude PIE rendering for an element
hmm...of course it does. I must have tested it wrong the first time.

Thanks :)


Wed Jul 27, 2011 3:41 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.