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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:15:01+00:00 2026-05-23T13:15:01+00:00

so I need multiple lined divs to span across my page and then do

  • 0

so I need multiple lined divs to span across my page and then do the same thing when another div is added. But I’m not sure how I can achieve this. an example of this is:

[ div 1][ div 2][ div 3][ div 4][ div 5]

And then when another div is added it won’t stack below, but decrease the size of the divs to fit into the space.

  • 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-23T13:15:02+00:00Added an answer on May 23, 2026 at 1:15 pm

    You should use display: table-cell.

    See: http://jsfiddle.net/2X73J/

    The browser support is excellent: http://caniuse.com/css-table

    <div class="multiContainer">
        <div>div 1</div>
        ..
    </div>
    
    .multiContainer {
        width: 100%;
        display: table;
        background: #ccc
    }
    .multiContainer > div {
        display: table-cell;
        border: 1px dashed #f0f
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to match C++ preprocessor statements. Now, preprocessor statements may span multiple lines:
I need to have multiple forms in the same webpage, all of them POSTing
I need to add multiple empty divs to a container element using jQuery. At
I need to show tool tip text in multiple lines, but setTitle() method in
I need to parse text files where relevant information is often spread across multiple
Hi have the following content within an html page that stretches multiple lines <div
I have a program in Perl I'm working on where I would need multiple
I am developing LOB application, where I will need multiple dialog windows (and displaying
I need to generate multiple random values under SQL Server 2005 and somehow this
I need to export multiple data tables to Excel on the clients machine, each

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.