Get a free trial // Grow your CSS skills // Land your dream job

If div is in one div, then put it outside?

  • # October 15, 2013 at 3:44 pm

    Preferably in jQuery. I want it so that if… let’s say “.notin” is inside “.thisone”, it should automatically be moved above it. Is this possible?

    # October 15, 2013 at 4:03 pm

    Something like this:

    # October 15, 2013 at 4:15 pm

    I guess but it’s still on the inside when you click it, it’s just above the text. I mean so that it goes above the “outside” div.

    # October 15, 2013 at 4:34 pm

    Just prepend it to the element before outside div… so

    # October 15, 2013 at 4:41 pm

    I guess I’ll try to figure a way. It’s in the middle of a while loop in php and stuff but I think it will work. Thanks.

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

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed