View unanswered posts | View active topics It is currently Sun Jan 19, 2020 3:18 pm

Reply to topic  [ 1 post ] 
 Cloning a PIE'd element through jQuery 
Author Message

Joined: Sat Mar 26, 2011 6:10 am
Posts: 1
Post Cloning a PIE'd element through jQuery

first off, thank you for your hard work. After some fiddling, I got it up and running flawlessly and if I can solve this last little thing,
I will have reduced the whole development process by a whole lot (timewise) because we don't have to create images etc. every
time we want to adjust something.

However, an issue I encountered was cloning an element that have had behavior added to it (border-radius and linear-gradient).
It simply doesn't get any styles when inserted elsewhere in the document.

Here's the relevant CSS:
.content-box {
   width: 100%;
   border: 1px solid #a8b9c5;
   position: relative;
   padding: 8px;
   margin-bottom: 8px;
   font-size: 90%;

   border-radius: 6px;
   background-color: #FFF;
   behavior: url(assets/scripts/;

.content-box h2 {
   padding-left: 16px;
   margin: -8px -8px 18px;
   position: relative;
   font-size: 110%;
   font-weight: normal;
   height: 38px;
   line-height: 40px;

   /* CSS3/PIE */
   box-shadow: #777 0px 1px 5px;
   border-radius: 5px 5px 0px 0px;
   -pie-watch-ancestors: 1; /* Since we change the classes on .content-box (.content-box-gray etc.),
                                             we need to make sure PIE knows when the classes has changed on its
                                             parent */
   behavior: url(assets/scripts/;

Thanks again; cheers,

Sat Mar 26, 2011 6:15 am
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 5 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.