0

How to set body's height 100% ?? Its not working.!!

Using Css and HTML only.

30th Jun 2017, 9:01 AM
anirudh kumar
anirudh kumar - avatar
8 Réponses
0
try this , you need to set html height as well html { height: 100%; } body { min-height: 100%; }
30th Jun 2017, 10:37 AM
Peshkawt Mahmood
Peshkawt Mahmood - avatar
+ 3
body { min-height: 100% } what about this or maybe max-height?
30th Jun 2017, 9:22 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 3
whats the purpose of doing height: 100% jw
30th Jun 2017, 9:27 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 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
30th Jun 2017, 9:33 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 2
doesnt works still..
30th Jun 2017, 9:26 AM
anirudh kumar
anirudh kumar - avatar
+ 2
wanna make website fit to screen irrespective of device
30th Jun 2017, 9:29 AM
anirudh kumar
anirudh kumar - avatar
+ 2
you can give a container div height 100vh and if necessary 100vw width and ignore the body.
3rd Aug 2017, 1:23 PM
Rcknmrty
Rcknmrty - avatar
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.
30th Jun 2017, 2:07 PM
Igor B
Igor B - avatar