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 6941431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:53:06+00:00 2026-05-27T12:53:06+00:00

i dont think this is possible but just thought i’d ask as a last

  • 0

i dont think this is possible but just thought i’d ask as a last resort

Lets take a simple example, lets say you have some DIV’s stacked on top of each other as follows using display:block

XXXXXXXXXXX1
XXXXXXXXXXX2
XXXXXXXXXXX3
XXXXXXXXXXX4
XXXXXXXXXXX5
XXXXXXXXXXX6
XXXXXXXXXXX7
XXXXXXXXXXX8
XXXXXXXXXXX9
XXXXXXXXXX10
XXXXXXXXXX11
XXXXXXXXXX12
XXXXXXXXXX13
XXXXXXXXXX14

How would one make it so that if the variable number of stacked divs was taller than the height of its container that they would wrap in column form from left to right? for example:

XXXXXXXXXXX1    XXXXXXXXXXX6    XXXXXXXXXX11
XXXXXXXXXXX2    XXXXXXXXXXX7    XXXXXXXXXX12
XXXXXXXXXXX3    XXXXXXXXXXX8    XXXXXXXXXX13
XXXXXXXXXXX4    XXXXXXXXXXX9    XXXXXXXXXX14
XXXXXXXXXXX5    XXXXXXXXXX10

I would need each div to move independently, so using container divs acting as columns isnt really possible or graceful short of forcing no-wrap of the divs and allowing horizontal scrolling on the container?

I suppose in a lot of ways this would be the same behaviour as windows explorer when viewing items as a list.

Now, i realise there are a few CSS3 properties that would help with this – but i’d like to see if there is a cross-browser way of doing it, whether that be in pure CSS or jquery etc.

I welcome your thoughts.

Regards

J.

  • 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-27T12:53:06+00:00Added an answer on May 27, 2026 at 12:53 pm

    So looking at what you need you can use jquery to accomplish this

    An example is here http://jsfiddle.net/h8Bqw/4/

    var height = $(".container").height();
    var count = 1;
    $(".outPut").append("<div class='row r"+count+"'></div>");
    
    $(".container div").each(function(index) {
        $(".r"+count).append($(this));
    
    
         if($(".r"+count).height() > height){
             count++;
             $(".r"+count).remove($(this));
            $(".outPut").append("<div class='row r"+count+"'></div>");
            $(".r"+count).append($(this));
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I dont think this is possible in c# but ill post it anyway. Given
I don't think this is possible but I thought I'd throw it out there.
I dont think this is possible to do, so perhaps I need a totally
I don't think that this could be done in C#, but posting this just
I don't think this is currently possible or if it's even a good idea,
I don't think this is particularly quirky, but in an attempt to control my
I don't think this is technically a macro but I don't know what else
I don't think that this is doable, but wanted to throw it out to
i don't think im understanding this correctly, but how do i give users a
I am just investigating the idea of this so have no example code. I've

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.