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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:35:56+00:00 2026-06-11T18:35:56+00:00

I have a fluid CSS layout for a user application. The goal is that

  • 0

I have a fluid CSS layout for a user application. The goal is that the large content area (white) and the dark blue #notiarea will expand to fill the client desktop. The goal would be to have the #notiarea expand to fill the rest of the user desktop.

The #notiarea and the content div would than have a scrollbar for the content like the image below.

My question is how do I get the darkblue (#notiarea) element to expand to the rest of the application view area height only? How do I get the #notiarea to be fluid in height under all the fixed height elements, than I need the ability to use the css tag “overflow:auto;”? I would prefer a css solution but I’ll accept a jQuery solution.

example

Source code: Here’s a jsfidle for quick experimentation: http://jsfiddle.net/YLZRb/

  • 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-11T18:35:57+00:00Added an answer on June 11, 2026 at 6:35 pm

    Demo: http://dabblet.com/gist/3768929

    I use the very useful ‘box-sizing: border-box’ property to get this result, please read about it here: paulirish.com/2012/box-sizing-border-box-ftw/

    It is compatible from IE8+, you just need to tweak the layout a wee bit for IE7 and below viz. you could give the sidebar ‘position: absolute’ …it is the best one can do(without too much hassle).

    Okay, I’ve made similar layouts a gazillion times before, and couldn’t be more grateful to the box-sizing property. Here’s a quick review of the changes:

    #sidebar now has a ‘padding-top’ value equal to the height of #newpostcreator. Then, #newpostcreator is pulled back into place using negative top positioning again with a value equal to its height, in our case: -206px.

    Please note, I’ve also given every element ‘position: relative’ by using the ‘*’ universal selector. This is pretty useful when you have several absolute positioned elements on a page, so you wouldn’t have to specify relative positioning for each respective container. This is mainly a DRY(Don’t Repeat Yourself) thing and makes for cleaner code. This also gives every element additional positional control via ‘top’ ‘left’ ‘right’ & ‘bottom’.

    Also, since #sidebar is ‘position: fixed’, it is removed from the layout and is positioned relative to the viewport. So we need some blank space for it to rest without interrupting/overlapping the page content. I did this by giving #container a padding-left value equal to sidebar’s width. But I saw you’d already done that in your fiddle. i just refined it a lil bit.

    Now back to the sidebar, I’d mentioned giving it a 206 px’s of padding-top. To understand the logic behind this, you should get to know the box-sizing’s role in the layout. Basically, elements with ‘border-box’ has its padding and border all positioned inside the container. So, whatever width you specify the element, adding padding/border will not add its final width/height, it will be contained within. Keep in mind, this does not work with margins.

    So, the space left in the sidebar minus 206px’s of padding is 100%, which we now give to #notiarea.

    That is it pretty much. If you study the code, you’ll get a better understanding than what I’ve been able to provide. Please do check out the link, and remember to add vendor prefixes to box-sizing for older versions of Firefox, Opera and Chrome.

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

Sidebar

Related Questions

I have a fluid CSS layout which is rendering badly on an iphone when
Im bulding a web application , i have a two set fluid layout one
Whats the best way to get this layout in CSS? imagine that I have
I'm having a design/css issue. I'm using Twitter Bootstrap and have a .row-fluid, with
I'm working on a fluid layout project. I have some fixed height DIVs in
I have a page that I have started building with the Twitter Bootstrap css
Have any of you seen like a javascript library that allows fluid div scrolling.
I have a HTML table which I want to make fluid so that when
I have a really stuburn layout, that I just can not resolve .. -
Okay so I want to have an image that I select through CSS to

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.