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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:46:50+00:00 2026-06-01T11:46:50+00:00

Please see the demo here: http://jsfiddle.net/Freewind/Vkp4U/ The html: <div class=outer> <div class=x>x</div> <div class=y>y</div>

  • 0

Please see the demo here: http://jsfiddle.net/Freewind/Vkp4U/

The html:

<div class="outer">
    <div class="x">x</div>
    <div class="y">y</div>
    <div class="z">z</div>
</div>​

The css:

.outer {
    border: 1px solid black;
    overflow: scroll-x;
}

.x {
    width: 400px;
    border: 1px solid red;
    float:left;
}

.y {
    width: 400px;
    border: 1px solid yellow;
    float:left;
}

.z {
    width: 400px;
    border: 1px solid blue;
    float:left;
}​

How to let the 3 inner divs displayed in line, won’t wrap if I resize the browser to smaller?

Limitations:

  1. the width of outer div should not be specified
  2. the width of inner divs are fixed
  • 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-06-01T11:46:52+00:00Added an answer on June 1, 2026 at 11:46 am

    Hi you can define display table and table-cell in you css properties as like this

    Css

    .outer {
        border: 1px solid black;
        overflow: scroll-x;
    
        display:table;
    }
    
    .x {
        width: 400px;
        border: 1px solid red;
        display:table-cell;
    }
    
    .y {
        width: 400px;
        border: 1px solid yellow;
        display:table-cell;
    }
    
    .z {
        width: 400px;
        border: 1px solid blue;
        display:table-cell;
    }
    

    HTML

    <div class="outer">
    <div class="x">x</div>
    <div class="y">y</div>
    <div class="z">z</div>
    </div>​
    ​
    

    Live demo http://jsfiddle.net/Vkp4U/5/

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

Sidebar

Related Questions

I need some help with this accordion. Please see the demo here. http://jsfiddle.net/a36RL/ $(document).ready(function()
please see the demo below : http://www.templateaccess.com/demos/walkin/ i bought this template and really really
Please see here for a related question . However, char goes to 0xffff (or
Please see this fiddle I want the scrolling div stop following when left div
Please see: http://jasondaydesign.com/masonry_demo/ and click on the movemaine.com image I would like my transitions
first, please see the blog as the link showed below: http://blogs.nitobi.com/joe/2008/10/17/phonegap-now-for-android/comment-page-1/#comment-12918 the author made
Please see the demo . How come the li 's do not wrap to
Please see code below. The destructors are never called. Anyone know why and how
Please see this piece of code: #include<stdio.h> #include<string.h> #include<stdlib.h> int main() { int i
Please see following methods. public static ProductsCollection GetDummyData(int? customerId, int? supplierId) { try {

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.