+ 1
Why this didnt work?
here's the link! i reallh didnt understand! https://code.sololearn.com/WdWX8DsPy7AO/?ref=app
7 Antworten
+ 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.
+ 1
hmm... so i cant do 100% height ?
+ 1
Thanks Jeroen van der Laan !
0
Your class wants to take 100% of parent element size, which has no size.
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?
0
Give html and body a width and height of 100%. Then it shouls work.
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