Why can't I change the #container height from 300px to 100%?[ solved] | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 7

Why can't I change the #container height from 300px to 100%?[ solved]

https://code.sololearn.com/WeXU59qZG5o9/?ref=app I changed it and It was supossed to make the height of the container on full page but it was not working. Help pls.

22nd Jan 2019, 1:10 PM
šŸ‡ Alex Tușinean šŸ’œ
šŸ‡ Alex Tușinean šŸ’œ - avatar
1 Resposta
+ 13
it's because using percentage will make the element itself follow the height of the parent element (in this case, the parent element is <body>)
22nd Jan 2019, 1:24 PM
Amethyst Animion
Amethyst Animion - avatar