setting the height of a div
|
| View previous topic :: View next topic |
| Author |
Message |
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| I have a question about the difference between setting the height of a div to auto versus 100%. Does auto mean that the div height will be the height of the content plus padding, and 100% mean that the div height will be 100% of the height of its container? |
| |
|
|
|
|
ovigo22
Joined: 15 May 2006 Posts: 130
|
Only if the height of its container is specified
*parent container
But other then that yeah |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| Ok, so how do I get the height of my outermost div (the container) to stretch to the bottom of the browser window even if the content of the div is not big enough? |
| |
|
|
ovigo22
Joined: 15 May 2006 Posts: 130
|
| Using javascript? or set your body's height to 100% ? |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| Ah, I didn't realize that the body could have a height |
| |
|
|
Kopilman
Joined: 25 May 2006 Posts: 162
|
| google "faux column" |
| |
|
|
BigDaddy
Joined: 26 May 2006 Posts: 147
|
| Thanks Chris |
| |
|
|
|
|