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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:32:15+00:00 2026-05-24T02:32:15+00:00

I often run in the following problem, I have a web page with the

  • 0

I often run in the following problem, I have a web page with the following divs:

  • header
  • sidebar
  • content
  • footer

sidebar and content are both float left with a break afterwards.

I want content to expand to the right edge of the browser, no matter how wide or narrow the browser width.

However, no matter what I try, I am face with two choices:

  • content must be a fixed width
  • content is not a fixed with (no width property) but resizing the browser pops the content down under the sidebar

The site I’m working on has many more divs than these four so it’s hard to post CSS code that is not convoluted, but does anyone have a general strategy to enable content to expand out to the browser’s right edge while never popping under sidebar if browser width is made too small?

My current solution is: table.

enter image description here

Addendum 1

Thanks Hristo, your solution works except that sidebar and content can’t have fixed heights, which causes the footer to appear in the middle. Since you aren’t using floats, how do you make the footer come after both of them?

enter image description here

  • 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-24T02:32:17+00:00Added an answer on May 24, 2026 at 2:32 am

    UPDATE

    http://jsfiddle.net/UnsungHero97/ABFG2/10/


    Check out the fiddle…

    http://jsfiddle.net/UnsungHero97/ABFG2/2/

    Let me know if you have any questions. I hope this helps.
    Hristo

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

Sidebar

Related Questions

I often run into the following problem. I work on some changes to a
I often run into the problem that I have one stream full of data
We run some large directories where users often copy/paste content from word documents etc
I have the following structure in my code Dictionary<TKeys, TValues> data; . I run
New Java programmers often encounter messages like the following when they attempt to run
I have the following problem. Given a Interface EventNotifier for the Observer Pattern: public
I often run into code that has to perform lots of checks and ends
I often run into the situation where I want to disable some code while
Something that I often run into with my users is their desire to aquire
One of the problems I often run into, is that I will include '

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.