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

python - PyInstaller UAC not working in onefile mode -

ios - Pass NSDictionary from Javascript to Objective-c in JavascriptCore -

wso2is - WSO2 IS 5.0.0 SP1 After restart there is authentication error -