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