Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2014
    Posts
    45
    Thanks
    24
    Thanked 0 Times in 0 Posts

    How to shift boxes automatically?

    I've included a JSFiddle link below to see my code. The code creates 6 boxes, 3 on top of the other. However, I'll eventually want to input a new box BETWEEN one of the others. Currently, this causes one row to have 4 boxes. What I want to happen when I insert a new box is to SHIFT the box to the right. So if I insert a new box between Box #2 and Box #3, I want Box #3 to take Box #4's current position, ultimately pushing the current Box #6 to start a new line by itself.

    Please tell me how to do this and/or provide code example.

    Thank you so much!

    JSFiddle Link

  • #2
    New to the CF scene
    Join Date
    Aug 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I would use one unordered list. i created a quick fiddle.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •