+ 1

Why this didnt work?

here's the link! i reallh didnt understand! https://code.sololearn.com/WdWX8DsPy7AO/?ref=app

4th Aug 2018, 9:45 AM
Jingga Sona
Jingga Sona - avatar
7 Réponses
+ 3
Which elements are being affected by your class tags? You should have something like h1, paragraph or body content and assign it to the div tags in order to see output. Right now it like painting something that is not existing. Create sth like a heading or paragraph and use the class tags to affect it.
4th Aug 2018, 12:26 PM
Danstan Ongubo
Danstan Ongubo - avatar
+ 1
hmm... so i cant do 100% height ?
4th Aug 2018, 9:58 AM
Jingga Sona
Jingga Sona - avatar
4th Aug 2018, 10:28 AM
Jingga Sona
Jingga Sona - avatar
0
Your class wants to take 100% of parent element size, which has no size.
4th Aug 2018, 9:52 AM
Jeroen van der Laan
Jeroen van der Laan - avatar
0
Maybe this was changed since it was originally posted, but I see output. What kind of output are we supposed to be expecting that is different from the current output?
4th Aug 2018, 10:25 AM
Janning⭐
Janning⭐ - avatar
0
Give html and body a width and height of 100%. Then it shouls work.
4th Aug 2018, 10:27 AM
Jeroen van der Laan
Jeroen van der Laan - avatar
0
body { height: 100% } refers to html You need to set html as well. Try this html, body { height: 100%; } https://code.sololearn.com/WnuJQcyToJ3P/?ref=app
4th Aug 2018, 11:51 AM
Calviղ
Calviղ - avatar