September 1, 201412 yr Is the height property set to auto by default or if you want it on auto is that something you need to specify? What I mean by that is if you create a div without setting a height value but you start adding text would the height expand as more text goes in? Is that what is meant by "auto" i.e. the div dimension responds to the content within it and changes size?
September 1, 201412 yr Auto is the default height property and yes your thinking is right, it's height will automatically be calculated to accomodate it's contents. So when you have a block level element it's pointless to declare width 100% and height: auto unless you are undoing styles previously set.
Create an account or sign in to comment