Grow your CSS skills. Land your dream job.

Moving Divs with jQuery

  • # April 11, 2012 at 8:59 pm

    Dear Forums,

    Need help, Please see this fiddle:
    http://jsfiddle.net/RTrJg/1/

    basically trying to get the selected container to appear on top of the stack when targeted. In practice, these would be images loaded dynamically.

    Thanks in advance

    # April 12, 2012 at 6:57 am

    Here is something to at least get you started, its 4 am and i just popped this up in about 5 minutes, sorry for the ugliness…I am kinda tired lol…it only uses the red and orange to illustrate moving and basic stacking…

    http://jsfiddle.net/UgfCA/

    it is VERY ROUGH! beware :)

    # April 12, 2012 at 7:31 am

    Do you need three boxes? Or do you want to use more of them???
    I’ll come up with a solution if you gotta answer to my question :)

    # April 12, 2012 at 8:57 am

    This will do the job: http://jsfiddle.net/savver/DVkNG/
    BTW: You can add at many list items as you want ;)

    # April 12, 2012 at 9:31 am

    very good Vermaas, thats almost what im looking for. Although what i had in mind was for the stacking order to keep bumping down instead of the top and target switching positions…but thank you for this head start!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".