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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:44:20+00:00 2026-06-09T01:44:20+00:00

i am trying to implement a content where i need to have a section

  • 0

i am trying to implement a content where i need to have a section of 100% of the browser width and inside it i need to have in the left size a div with 200px width and in it’s right i need to have a div with dynamic width depending of the browser width.
Example .. browser = 900px -> left div 200px right div 700px.
And both of the divs have dynamic height depending how much info i put in them .. the wrapper div will take the biggest of those 2 div height..

So far i did something like this
html

<section id="wrapper">
  <div id="list">
  </div>
  <div id="grid">
  </div>
</section>

css

#wrapper {
    width: 100%;
    min-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
    overflow: hidden;
}

Now i need to css the #list and #grid divs. I hope there is an efficient solution to this because later on i will have the same stuff to do inside the #grid div 🙂

Thank you in advance, Daniel!

  • 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-09T01:44:21+00:00Added an answer on June 9, 2026 at 1:44 am

    You can do it with CSS. The trick is to use a float (the left div) and a non-floating div (the right one). Also the left (floating) div, needs to have a minimum height, otherwise the right (non-floating) div will take the space of the left column if the left doesn’t have any content.

    EDIT: The right <div> should also have the following rules:

    overflow: hidden;
    display: block;
    

    The overflow: hidden makes the right div behave as a column, otherwise its content would flow around the left div.

    Note that the #wrapper doesn’t need a width because the default width of a <div> is 100% (since you said it will take the full width of the browser window), and also remove its margins.

    Here’s an example (I changed the <section> to <div> for the sake of the non HTML5 browsers but it works the same).

    I placed background colours to distinguish all the elements.

    http://jsfiddle.net/pmv3s/1/

    Here is the full screen version: http://fiddle.jshell.net/pmv3s/1/show/light/

    The CSS:

    #wrapper {
        padding: 40px 0;
        overflow: hidden;
        background-color: red;
        min-height: 5px;
    }
    #list {
        float: left;
        width: 200px;
        background-color: green;
        overflow: hidden;
        min-height: 100px;
    }
    #grid {
        display: block;
        float: none;
        background-color: blue;  
        min-height: 100px;
        overflow: hidden;    
    }
    

    ​

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

Sidebar

Related Questions

I have been trying to implement scroll bars to scroll through the content of
I am trying to implement an NSTextView which resizes to fit its content. I
I'm trying to implement an script that reads the content(files and folders) of a
I'm trying to implement IP address validation on my page. I have a test
I'm trying to write a proxy server and right now I want to implement
I'm trying to implement a SlidingDrawer that will occupy the full screen width, but
I'm new to Drupal (v6) and PHP, and I'm trying to implement some content
I'm trying to implement an odata consumer, specifically right now related to doing batch
I'm trying to do Isometric 3D in CSS, here is what I have right
I am trying to implement applicationContextAware in my servlet.I have the data from client

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.