html - Do divs expand vertically to fit their children divs? -


I have trouble developing my division vertically with my children

My There is something like:

  & lt; Div class = 'headerwrapper' & gt; & Lt; Div class = 'header' & gt; & Lt; Img ..... height = 100 & gt; & Lt; / Div & gt; & Lt; / Div & gt;   

In the firebug, there is a height of 100 in the header divisor, the height of 0 in the header divider divisor.

The image is visible in the diu below .. .. There is no definite height on the drawer's diwi.

is confused

thanks- jonathan

See if you have a header divi set float.

When a child element floats and its parents do not, then it gives the reason for falling to the root element of the "0".

This is a very good description problem about halfway down the page.

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -