colorbox - jQuery: How to reset all element positions on page? -


Say I have a bunch of DIV with a class of "apple", and with a class of DIV A group "orange"

All of these DIVs have different posts, but I want to use any jQuery function so that they are made live on the page without reloading any of the new positions relative to their parents' containers. Could.

So, for example, without reloading the page, how do I set up all the DIVs with the original orientation of the original "200px" with the square of "apple"?

Thank you!

  var $ apple = $ ('. Apple'); // caching your elements $ .pspear (.css) ('position', 'relative'); // Set a relative position to $ relative.css ('condition', 'absolute') // set a full position relative to parent.css ('top', '200px'); // Set Top Position  

Comments