Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6088625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:00:25+00:00 2026-05-23T12:00:25+00:00

I am doing one R&D and trying to find a answer of one problem.

  • 0

I am doing one R&D and trying to find a answer of one problem. I have 6 divs on page which contains different content. I want to move these six divs place (on live page) by changing jquery or CSS files only. For example :-

<div>1</div> <div>2</div> <div>3</div> <div>4</div> <div>5</div> <div>6</div> 

I have coded above thing which displays content in below manner (with help of css – float) :

1 2

3 4

5 6

what script or css without changing HTML structure will help me to show content in below structure:-

6 5

3 4

2 1

can any one help me with this please.

Please let me know if I have to give any other information from my end.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T12:00:25+00:00Added an answer on May 23, 2026 at 12:00 pm

    Here’s a quick and dirty way that worked for me. I created a function which takes an array that specifies the new order for the <div> tags and uses append to reorder them.

    function changeOrder(newOrder) {
        var $divs = $('div'),
            $parent = $divs.eq(0).parent();
        for (var ii = 0; ii < newOrder.length; ii++) {
            $parent.append($divs.eq(newOrder[ii] - 1));
        }
    }
    
    $(function() {
        changeOrder([6,5,3,4,2,1]);
    });
    

    Working example: http://jsfiddle.net/FishBasketGordo/XK44w/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am doing one small application , wheich have login functionality, in the user
When doing databinding does one have to implement INotifyPropertyChanged on the datacontext in WPF?
Some people have suggested that when doing an estimate one should make a lower
I'm doing some assignment and got stuck at one point here. I am trying
I currently have a dropdown box which contains a list of all of the
I have a little issue I'm trying to find a solution for. Basically, imagine
I am right now trying to hide six divs while showing only one of
I have created one thread for calling native function which are calling the MPEG2
I'm trying to find the items that appear only one time in a Javascript
Am I doing this right? I am trying to find all the changes that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.