How do I get the content place holder to adjust to screen size?

Posted on 2010-08-13
Last Modified: 2012-05-10
I have a site that I am using a master page with and the content pages vary in the amount of content. I have an About page that has very little info and I need the content place holder to fill the remaining area of the page and push the footer to the bottom of the viewable area so there is no scroll. I can hardcode the height for my monitor but I need this to act the same across any resolution.
Question by:WCCrobert
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Expert Comment

ID: 33430993
there are a couple of different concepts here.

1.  "I want the footer to always be at the bottom of the browser window regardless of wether or not there is scrollable text."

2.  "I want the footer to always be at the bottom of the content, unless the content doesn't fill the screen, then put it at the bottom of the window."

Depending on which one you want will determine the way to go, but you probably dont want to mess with the contentPlaceHolder size.  You would either want to do it in CSS or put the content in side a table cell and manipulate the cell height.

Author Comment

ID: 33431335
2.  "I want the footer to always be at the bottom of the content, unless the content doesn't fill the screen, then put it at the bottom of the window."

This is how I would like it to work. What makes sense would be to put a minimum height in the div wrapper around my contentplaceholder, however it would need to be something along the lines of "min-height: 100% minus (height of header + height of footer)" which doesn't work.

Accepted Solution

JayFromPep earned 125 total points
ID: 33432083
Here is a link to a method I have used in the past.

Hope it helps!

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
asp web application 3 53
Validation for a field in 3 28
Execute jQuery after Function 4 33
Shared Service Environment 2 49
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question