My dilemma lies in the realm of web development. Specifically, with the CSS properties affecting the height of my div elements.
html, body { width: 100%; height: 100%; }
Despite specifying a height of 20% for my div element,
div { height: 20%; }
I am encountering an issue where the height does not adjust as expected and instead depends on the content within it. I am striving to achieve a fixed height of 20%, but seem to be falling short.
Any guidance or solutions you can provide would be greatly appreciated. Can you help me resolve this? Thanks!