문제

I just tried boilerplate and recognized that the body area is not fitting the whole page. I made a red body background, so you can see the difference.

Boilerplate normal (body was ending with content)

Boilerplate without normalize.css (body fits whole page)

Is this normal and wanted through the normalize.css and why?

도움이 되었습니까?

해결책

It is normal because in normalize.css the height and width of body / html element is not set. Set it to 100% and it will work as You want.

body,html{
   width:100%;
   height:100%;
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top