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 -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -