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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:54:57+00:00 2026-05-26T18:54:57+00:00

I am sure this is simple but… I have the following: http://jsfiddle.net/SUBH3/1/ HTML: <div

  • 0

I am sure this is simple but…

I have the following:

http://jsfiddle.net/SUBH3/1/

HTML:

<div id='wrapper'>
    <div id='panel1'></div>
    <div id='panel2'></div>
    <div id='panel3'>gest</div>
</div>

CSS:

#wrapper
{
    position:absolute;
    top:0px;
    left:0px;
    width:100%;
    height:100%;
}
#panel1
{
    position:relative;
    top:0px;
    left:0px;
    float:left;
    height:100%;
    width:35px;
    background-color:blue;
}

#panel2
{
    position:relative;
    top:0px;
    left:0px;
    float:left;
    height:100%;
    width:240px;
    background-color:red;
}


#panel3
{
    position:relative;
    top:0px;
    left:0px;
    float:left;
    height:100%;
    background-color:green;
}

What I want is to have the final green panel fill the rest of the space. I have tried a few things but cannot do it. I can use a table to achieve what I want, which is what I will probably do, I just want to know how I can do this with css?

I have tried this with list elements too, but end up with the same problem.

  • 1 1 Answer
  • 1 View
  • 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-26T18:54:57+00:00Added an answer on May 26, 2026 at 6:54 pm

    I get it I get it. You’re floating the other two panels, but if you don’t float the last one, it will fill the rest of the space. Normally it would float around the bottom of the left two containers, but because they are 100% height, it doesn’t.

    Thus you should use this style rule:

    #panel3
    {
        height:100%;
        background-color:green;
    }
    

    http://jsfiddle.net/hGWyF/

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

Sidebar

Related Questions

Im sure this is simple but newbie here. I have 5 URLS cards.php&type=one cards.php&type=two
I'm sure this is simple but it's driving me nuts. I have a ListBox
I'm sure this is simple but my brain just isnt working today! I have
I'm sure this is simple but I have no idea how to do it.
I am sure this is a simple question but have not been able to
I'm sure this is simple but I can't figure out how to achieve it:
Sorry, I'm sure this is simple but I'm tired and can't figure it out.
Im sure this is pretty simple but I just cant seem to find the
I'm sure this is something simple but I've been staring at it for a
I'm sure this is a very simple fix but I cannot seem to find

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.