0
How to set body's height 100% ?? Its not working.!!
Using Css and HTML only.
8 Answers
0
try this , you need to set html height as well
html
{ height: 100%; }
body
{ min-height: 100%; }
+ 3
body {
min-height: 100%
} what about this or maybe max-height?
+ 3
whats the purpose of doing height: 100% jw
+ 3
but why? u need to allow y overflow or else ur webpage will look short. if ur going to resize the whole thing to fit in a device screen then u can but idk why it doesnt work. probably ur content exceeds the 100% and u cant just resize the body like that
+ 2
doesnt works still..
+ 2
wanna make website fit to screen irrespective of device
+ 2
you can give a container div height 100vh and if necessary 100vw width and ignore the body.
0
If you want to get a good answer, show the code you tried to solve the problem, say what you expect to happen, and what happens instead.