[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

stretching a DIV to fill remainer of screen?

Posted on 2010-03-25
4
Medium Priority
?
288 Views
Last Modified: 2012-05-09
On this page:

http://www.ludwickfh.com/v2/locations.asp

I have the "bottomarea" DIV containing the bottom of the white box and shadow. But on short pages, or if you have a tall monitor/resolution setting, it doesn't extend down to cover up the remainder of the white box background.

I put a black border around "bottomarea" to make it clear what I'm trying to extend. I thought if I added height: 100%; that would do it, but it does.

Thanks for your help!
0
Comment
Question by:bbdesign
  • 2
  • 2
4 Comments
 
LVL 22

Accepted Solution

by:
remorina earned 2000 total points
ID: 28563442
It's because you're using a position absolute for the left navigation.
The simplest fix would be to add a min-height to the .content div

Relpace your current class with the one below

div.content {
min-height:350px;
padding:18px 18px 0 222px;
width:578px;
}

Open in new window

0
 

Author Comment

by:bbdesign
ID: 28564880
OK, that helps. But there could still be huge differences in the height of a page, and also the user's monitor. If I make the min. height too small, the white box could show at the bottom. If its too tall, then there is a lot of extra blank space at the bottom. I guess living with the extra blank space is the preferable option, if there is no other way to say "100% height in the space"?
0
 
LVL 22

Expert Comment

by:remorina
ID: 28567169
This white area is because of the body background
Of course there are other ways to fix this and make the footer stick to the bottom of the page, but as per what I've seen in the code it will require some extensive work on both HTML and CSS since you would have to change the structure, introduce some new divs and move some others such as the bottom links <p class="bottomlinks"> which falls outside of the <div class="bottomarea">

So if you just need a quick fix and only got couple of short pages, then living with the long blank space is the best for you at the moment
0
 

Author Comment

by:bbdesign
ID: 28567812
OK, thanks!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses
Course of the Month8 days, 20 hours left to enroll

590 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