redho home | products | services

Programming Forums


Community for Java, PHP, Perl C, ASP and Python programmers

Ask your IT question here

setting the height of a div



 
Post new topic   Reply to topic    Programming Forums -> CSS forum
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
Using javascript? or set your body's height to 100% ?
Reply with quote
 
BigDaddy
Enthusiastic Coder


Joined: 26 May 2006
Posts: 147
Ah, I didn't realize that the body could have a height
Reply with quote
 
Kopilman
Enthusiastic Coder


Joined: 25 May 2006
Posts: 162
google "faux column"
Reply with quote
 
BigDaddy
Enthusiastic Coder


Joined: 26 May 2006
Posts: 147
Thanks Chris
Reply with quote
 
Page 1 of 1
Post new topic   Reply to topic    Programming Forums -> CSS forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group