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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:39:11+00:00 2026-06-16T06:39:11+00:00

I have a containing div with a few divs within it. None of these

  • 0

I have a containing div with a few divs within it.

None of these have widths.

I am looking to make the black div fill the entire space, so it stretches to the ABC div on the right.

Only needs to work in Chrome, though cross-browser of course appreciated!

<div id="player">
    <div id="now_playing">
        <div id="now_playing_icon">
            A
        </div>
        <div id="now_next_container">
            <div id="now_next_now">
                Now: Blah Blah
            </div>
            <div id="now_next_next">
                Next: Blah Blah
            </div>
        </div>
        <div id="timeline">
            fill the remainder width 20px margin
        </div>
        <div id="now_playing_controls">
            ABC
        </div>
    </div>
</div>​

#now_next_container{
    float: left;
    padding-top: 15px;
}

#now_next_next{
    color: #777777;
    font-size: 13px;
}

#now_next_now{
    color: #303030;
    font-size: 16px;
}

#now_playing{
    background: #edeeed;
    height: 65px;
    width: auto;
}

#now_playing_controls{
    color: #303030;
    float: right;
    font-size: 20px;
    height: 65px;    
    line-height: 65px;
    margin-right: 30px;
}

#now_playing_icon{
    color: #303030;
    float: left;
    font-size: 25px;
    line-height: 65px;
    margin-left: 30px;
    padding-right: 10px;
}

#player{
    width: 100%;
}

#timeline{
    background: black;
    color: white;
    float: left;
    height: 25px;
    line-height: 25px;
    margin: 20px;
}
​

http://jsfiddle.net/WCpHh/

Thanks in advance.

  • 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-16T06:39:13+00:00Added an answer on June 16, 2026 at 6:39 am

    Given that you only need to support Webkit, as stated in your question, this raises the possibility of using the flex-box model. This is, of course, still in a vendor-prefixed mode:

    #player {
        background-color: #eee;
        padding: 1em;
        text-align: center;
    }
    
    #now_playing {
        border: 1px solid #000;
        display: -webkit-flex;
        -webkit-flex-direction: row;
        -webkit-flex-wrap: nowrap;
    }
    
    #now_playing_icon {
        display: -webkit-flex-inline;
        -webkit-order: 1;
        -webkit-flex: 1 1 auto;
    }
    
    #now_next_container {
        display: -webkit-flex-inline;
        -webkit-flex-direction: column;
        -webkit-order: 2;
        -webkit-flex: 1 1 auto;
    }
    
    #timeline {
        color: #f90;
        background-color: #000;
        display: -webkit-flex-inline;
        -webkit-order: 3;
        -webkit-flex: 4 1 auto;
    }
    
    #now_playing_controls {
        display: -webkit-flex-inline;
        -webkit-order: 4;
        -webkit-flex: 1 1 auto;
        margin-left: 20px;
    }
    ​
    

    JS Fiddle demo.

    This doesn’t, exactly, ‘use the remaining space,’ it’s explicitly instructed to be (and I’m…struggling to explain this, since I’ve only just started experimenting) four times larger than the other items in the same row (its flex-grow property (the 4 in 4 1 auto) instructs it to ‘grow’ four times larger. But it does, I think, meet your needs, given a relatively up-to-date incarnation of Chrome.

    References:

    • CSS Flexbox Please! (Flexbox playground/demo).
    • CSS Flexible Box Layout Module (W3.org).
    • ‘Using CSS Flexible Boxes’ (MDN).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 2 divs, 70% and 30% widths, within a 100% width containing div.
I have a few divs within a containing div, eg: <div id=container> <div class=itmeholder>
I have a div element containing a few other divs with an id of
I have a parent div and few other divs nested in it containing text.
I have a div, containing text and a few links. I want to trigger
So I have 3 divs contained inside a containing div like such: <div id=contain>
i have a div containing multiple divs with absolute position, i want to handle
I have div containing multiple divs and text. The inner divs are alternately floated
I have a div containing a few jquery draggables, however if at any point
I have a div containing several other divs containing an image. It looks smth

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.