- #1
shivajikobardan
- 674
- 54
- TL;DR Summary
- height:auto
https://stackoverflow.com/questions/15943009/difference-between-css-height-100-vs-height-auto
I read the accepted answer and it doesn’t make much sense to me in practical applications.
Here’s my codepen.
What does height:auto does here?
As per my research, height:auto fits content. Ie As much content, that much height.
Also height:auto is default for every block element and form is a block element, why is it necessary to add height:auto here?
I read the accepted answer and it doesn’t make much sense to me in practical applications.
Here’s my codepen.
What does height:auto does here?
As per my research, height:auto fits content. Ie As much content, that much height.
Also height:auto is default for every block element and form is a block element, why is it necessary to add height:auto here?