Aligning a Div at the bottom of a page, but above another div

Hey there CSS pr0's!

--- Intro story, no need to read Tongue ---

div that changes size with the amount or size of text that is inside it?

Hi all.
I am making a website and am trying to get it to look the same on all screen sizes. To do this I have used absolute positioning and % position values for all the divs and images. But when I try it out on the tiny screens at college the text that is inside my main content div wanders outside of it and disappears against the black background Sad.
Here is the code I am using:

<!-- In the stylesheet -->
#maindiv {
	position: absolute;
	top: 15%;
	left: 25%;
	width:  50%; 
	height: 100%;
	padding: 5px;
	background-color: #FFFFFF;
	border: 10px solid gray;

Text overlay on image -- almost there (but need a little help)

On this test page, you can see I am trying to place a shaded overlay with text on an image. The problem is that the overlay is dropping below the image. I cannot figure out why. Any ideas?

http://www.gentryfoto.com/2011/

floating stacked variable height div containers in a 2 column layout

Hi Guys, please help:
I have a basic layout using div tags with CSS. There's a header, a footer, with a left and right column in between. The left and right columns each have 3 stacked divs that should stay together, even if the height of the div tags change...

I'm having difficulty with the floating and clearing options to maintain the structure.

Here's the code:

<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Floating Problem</title>
<style type="text/css">
#body {
	background-color: #CCC;
}
#wrapper {
	background-color: #999;
	width: 800px;

CSS - TextOverflow:auto for fixed width, does not expand the background color of div tag

Hi All,

My apologies if similar post already exists. I am creating one as I could not find any posts exactly matching the problem I am facing.

I have fixed width nested div tags with text that overflows. (refer sample_html-textoverflow.txt file, rename extension to .html). I am using Textoverflow:auto for displaying scrollbar. and it works fine as desired. But the background color for a div tag, is not getting overflowed along with the text.

Kindly help.

Syndicate content