Question

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?

Was it helpful?

Solution

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%;
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top