css - What are the differences between auto and 100%? -


what differences between these 2 styles :

.styleone {      height: auto; }  .styletwo {      height: 100%; } 

with "height: auto" height of element depend on content in it. height of 100% make te element high parent.

note if height of element 100% , parent has fixed height position of parent not relative, element high html element.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

python - Error: Unresolved reference 'selenium' What is the reason? -

asp.net ajax - Jquery scroll to element just goes to top of page -