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

  • Home
  • SEARCH
  • 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 8130609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T08:46:42+00:00 2026-06-06T08:46:42+00:00

I have a container: divA. divB and divC are inside divA. Both divB and

  • 0

I have a container: divA.

divB and divC are inside divA.

Both divB and divC are floated left, so they are side by side.

#divA
height:500px;
width:1000px;

#divB 
width:200px;
height:100%;
float:left;

#divC
height:100%;
float:left;
width:????

I want divC to fill the remaining space of divA dynamically, i.e I need it to have a dynamic width. How can I do this?

P.S If I set its width to 100% it fills the entire divA. What I want is for it to fill the entire width of divA but minus divB.

  • 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-06T08:46:43+00:00Added an answer on June 6, 2026 at 8:46 am

    Give overflow:hidden to your #divc .Write like this:

    #divB{ 
    width:200px;
    height:100%;
    float:left;
    }
    #divC{
    height:100%;
    overflow:hidden;
    }
    

    Check this http://jsfiddle.net/yY388/

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

Sidebar

Related Questions

I have a container div (it has both width an height set in pixels).
HI, I have container movieclip and one mask layer with the height and width
I have container, and two divs inside lets call it left and right .
I have a container div with a fixed width and height , with overflow:
I have a container div with the following CSS: #container { position:relative; overflow:hidden; width:200px;
I have this container div whose width I would like to set according to
I have a container and inside that I have several anchor tags. These anchor
I have a container with a height of 100% so the height will be
I have container did and there are many divs inside that div. In one
I have a container div which is centred at 50% of the page width.

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.