+ 4

Height

Why i can't use percentages to define height of block level element?

14th Dec 2019, 9:39 AM
Unknown Ambusher 🗡️
Unknown Ambusher 🗡️ - avatar
1 Odpowiedź
+ 1
Using percentages for height should work for block elements, but the height then depends on the height of the containing block: https://developer.mozilla.org/en-US/docs/Web/CSS/height
14th Dec 2019, 11:36 AM
Aaron Eberhardt
Aaron Eberhardt - avatar