Hey, I need some pointers on an issue I'm having with DIVS. I'll provide an example of what I have and what I want to get:
This is the current sample HTML file I'm using
And here is the corresponding CSS file
There are two things I want to accomplish: first, how do I get the "bottom_" DIV's height to extend up to my browser height? Right now, the "bottom_" DIV's height sets itself to one browser screen's height, regardless of where it is. I want the "bottom_" DIV's to be only as tall as the web browser's screen, and only extend its height when more text is entered.
Secondly, let's say I'm using the "center" DIV as my main text section. When there's more text in "center" than the size of the DIV allows, the extra text continues underneath the "bottom_center" DIV. How do I get that text to show up on top of "bottom_center"? Furthermore, if at all possible, going along with the idea in the above paragraph, I would only like the "bottom_" row of DIVs to extend based on the amount of text in the "center" DIV. Or would I have to start writing more text directly on the "bottom_center" DIV once the "center" DIV fills up?
Thanks.
(sample uploaded here)
This is the current sample HTML file I'm using
| Code: |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel=stylesheet type="text/css" href="test.css"> <title>Untitled Document</title> </head> <div class="left">left</div> <div class="center">center</div> <div class="right">right</div> <div class="bottom_left">bottom_left</div> <div class="bottom_center">bottom_center</div> <div class="bottom_right">bottom_right</div> </html> |
And here is the corresponding CSS file
| Code: |
| body {
margin-left: 0px; margin-top: 0px; margin-bottom: 0px; margin-right: 0px; background-color: #21726b; } DIV.left { background-color: yellow; width: 195px; height: 300px; position: absolute; left: 0px; } DIV.center { background-color: blue; height: 300px; width: 337px; position: absolute; left: 195px; } DIV.right { background-color: red; width: 268px; height: 300px; position: absolute; left: 532px; } DIV.bottom_left { background-color: green; width: 195px; height: 100%; position: absolute; left: 0px; top: 300px; } DIV.bottom_center { background-color: pink; height: 100%; width: 337px; position: absolute; left: 195px; top: 300px; } DIV.bottom_right { background-color: white; width: 268px; height: 100%; position: absolute; left: 532px; top: 300px; } |
There are two things I want to accomplish: first, how do I get the "bottom_" DIV's height to extend up to my browser height? Right now, the "bottom_" DIV's height sets itself to one browser screen's height, regardless of where it is. I want the "bottom_" DIV's to be only as tall as the web browser's screen, and only extend its height when more text is entered.
Secondly, let's say I'm using the "center" DIV as my main text section. When there's more text in "center" than the size of the DIV allows, the extra text continues underneath the "bottom_center" DIV. How do I get that text to show up on top of "bottom_center"? Furthermore, if at all possible, going along with the idea in the above paragraph, I would only like the "bottom_" row of DIVs to extend based on the amount of text in the "center" DIV. Or would I have to start writing more text directly on the "bottom_center" DIV once the "center" DIV fills up?
Thanks.
(sample uploaded here)
