CSS3 PIE Forums
http://css3pie.com/forum/

PIE reordering my divs
http://css3pie.com/forum/viewtopic.php?f=4&t=1692
Page 1 of 1

Author:  arthur5005 [ Fri Jun 08, 2012 10:32 am ]
Post subject:  PIE reordering my divs

I work on a GUI web framework, we're giving CSS3 PIE a trie for some rounded corners here and there. We have a basic layout method which just uses jQuery's append to add elements to a container div, nothing fancy. When all is said and done, the divs (which are pie elements) are out of order - backwards.

Removing the .htc fixes the issue. Does anyone know why this might happen?

Author:  jason [ Fri Jun 08, 2012 11:14 am ]
Post subject:  Re: PIE reordering my divs

Does your framework use the number of sibling elements to determine insertion position? Remember that PIE inserts an extra element as a previous sibling to each target element, so this would throw off your counts if you don't take it into account.

Author:  arthur5005 [ Fri Jun 08, 2012 1:07 pm ]
Post subject:  Re: PIE reordering my divs

Hah! Well done! Definitely the problem. I almost don't want to put pie on my root elements. Hmmm.. Ok! Thanks.

Author:  drbass0 [ Sun Jun 24, 2012 9:17 pm ]
Post subject:  Re: PIE reordering my divs

Awesome. I had a similar issue with the positioning of my divs. They were all going out of whack. Thanks for that.

Page 1 of 1 All times are UTC - 7 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/