Why can't I change the #container height from 300px to 100%?[ solved] | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponse
+ 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