setting the height of a div
|
| View previous topic :: View next topic |
| Author |
Message |
BigDaddy Enthusiastic Coder
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?
Reply with quote
|
| |
|
|
ovigo22 Enthusiastic Coder
Joined: 15 May 2006 Posts: 130
|
Only if the height of its container is specified
*parent container
But other then that yeah
Reply with quote
|
| |
|
|
BigDaddy Enthusiastic Coder
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?
Reply with quote
|
| |
|
|
ovigo22 Enthusiastic Coder
Joined: 15 May 2006 Posts: 130
| |
BigDaddy Enthusiastic Coder
Joined: 26 May 2006 Posts: 147
| |
Kopilman Enthusiastic Coder
Joined: 25 May 2006 Posts: 162
| |
BigDaddy Enthusiastic Coder
Joined: 26 May 2006 Posts: 147
| |
|