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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:08:05+00:00 2026-05-24T18:08:05+00:00

I haven’t actually coded a website in a few years, so I’m pretty rusty.

  • 0

I haven’t actually coded a website in a few years, so I’m pretty rusty. What I’m trying to do is create a fixed-width and full-height sidebar and a fluid content area. (See visual mockup: http://i54.tinypic.com/2m2b445.png)

I ran across faux columns, and they seem to be doing most of the trick. The only thing the technique isn’t doing (and I can’t figure out how to make it do) is a full-height sidebar.

Here’s the CSS and HTML that I’m using:

html,body {
    height: 100%;
}
#page-container {
    min-height: 100%;
    margin: 0;
    position: relative;
}
* html #page-container {
    height: 100%;
}
#inner-container:after {
    content: " ";
    display: block;
    clear: both;
}
#left-col {
    float: left;
    width: 250px;
    background-color: #F3F3F3;
}
#right-col {
    position: relative;
    margin-left: 250px;
}

HTML:

<div id="page-container">
    <div id="inner-container">
        <div id="left-col">
            <ul>
                <li>Lorem Ipsum</li>
                <li>Dolar Sit Amet</li>
                <li>Consectetur</li>
                <li>Adipiscing</li>
                <li>Elit Integer</li>
            </ul>
        </div>
        <div id="right-col">
            <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit...</p>
        </div>
    </div>
</div>

How can I make the left column full-height? Should I be using a different column technique?

  • 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-24T18:08:06+00:00Added an answer on May 24, 2026 at 6:08 pm

    You could position the sidebar absolutely and give the content area the equivalent margin-left:

    <style>
    *, html {
    margin: 0;
    padding: 0;
    }
    html, body {
    height: 100%;
    position: relative;
    }
    
    /* i would use conditional stylesheets for IE fixes instead */
    * html div.column {
    height: 100%;
    }
    
    div.column {
    min-height: 100%;
    }
    div#content {
    margin-left: 250px;
    background-color: #FFFF99;
    }
    div#sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    background-color: #99FFFF;
    }
    </style>
    

    HTML:

    <div id="content" class="column">
    content
    </div>
    <div id="sidebar" class="column">
    sidebar
    </div>
    

    Edit: One major benefit of this technique is that you can put the content markup above the navigation etc in the page source – a pretty good SEO practice.

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

Sidebar

Related Questions

I haven't touched sharepoint in years. If I want to setup a development environment
I haven't programmed games for about 10 years (My last experience was DJGPP +
I haven't done a lot of .NET programming, but I've examined a few of
Basically, what I'm trying to create is a page of div tags, each has
I haven't worked with SQL Reporting much, however I have been trying to get
Haven't touch javascript for 3 years. Just got a javascript project and wanted to
Haven't seen anything, but I have seen that you can create albums in the
I haven't touch C++ in more then 8 years. I recently had to do
Haven't done as much of Javascript as I should have done. I am trying
I haven't worked with Java in about 10 years, so it's very probable I'm

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.