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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:36:06+00:00 2026-05-17T22:36:06+00:00

I have css code to do layout. i have basic header panel, footer, left

  • 0

I have css code to do layout. i have basic header panel, footer, left panel, and center panel. I want to have left panel and center panel automatically stretch to bottom(blue and gray part all the way to black footer). is there any way to do that?
following are my codes.

thank you,

alt text



body {
    text-align: center;
}
.wrapper {
    position: relative;
    width: 960px;
    font-size: 0.9em;
    margin: 0 auto -20px;
    text-align: left;
}
.header {
    height: 125px;
    background-color:purple;
}
.footer {
    position: relative;
    width: 960px;
    margin: 0 auto;
    background-color:black;
}
.footer a {
    color: #fff;
    text-decoration: underline;
    border: 0;
}
.footer p {
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 960px;
    padding: 0;
    color: #fff;
    font: 0.8em arial,sans-serif;
    text-align: center;
}
html, body {
    height: 100%;
}
.wrapper {
    min-height: 100%;
    height: auto !important;
    height: 100%;
    margin: 0 auto -20px; /* the bottom margin is the negative value of the footer's height */
    background-color:yellow;

}
.footer, .push {
    height: 20px; /* .push must be the same height as .footer */
}
.leftPanel{
    width:200px;
    background-color:blue;
    float:left;
    height: 100%;   
}
.centerPanel{
    width:760px;
    background-color:gray;
    float:left;
    height: 100%;   

}

dl,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,body,html,div,p,blockquote,fieldset,legend,input,select,textarea
{ margin:0; padding:0 }


     

<div class="wrapper"> <div class="header"> <h1>header</h1> </div> <div class="leftPanel"> leftPanel </div> <div class="centerPanel"> center Panel </div> <div class="push"></div> </div> <div class="footer"> <p>footer</p> </div> </body>

  • 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-05-17T22:36:07+00:00Added an answer on May 17, 2026 at 10:36 pm

    This is a very work-aroundish solution, but here it goes: http://jsfiddle.net/Us5Cn/

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

Sidebar

Related Questions

I have the following css code: #Layer3 { position:absolute; width: 89%; height: 40%; left:
I have written code that automatically creates CSS sprites based on the IMG tags
I have a website that is perfectely centered aligned. The CSS code works fine.
I have to deploy my php/html/css/etc code to multiple servers and i am looking
I have this code <html> <head> <style type=text/css> .frame {width: 50em; border: 1px solid
I have the following code <html> <head> <title>Test</title> <style type=text/css> <!-- body,td,th { color:
Are .css files always needed? Or may I have a .css basic file and
It is advisable to use tables in HTML pages (now that we have CSS)?
I have a CSS class called grid which I place on my tables. I
I have a CSS like this ul { list-style-image:url(images/bulletArrow.gif); } ul li { background:

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.