0
My black box can not be center
Am using flex box https://code.sololearn.com/WoHys05rAkry/?ref=app
4 Réponses
+ 2
You haven't set the height of the body:
body{
height: 100vh;
}
+ 2
The point is not flex, but the fact that 100% is calculated from the size of the content of the body, in your case 50 px.
And 100vh is 100% of your screen height.
+ 1
So flex box does not support 100%
+ 1
div#loader{
display:none;
text-align: center;
}
p{
color: black ;
border: 5px solid white;
}