body background color not showing?

Comment your Bootstrap include and see if the body is applied. You should try to test with the minimal amount of code first and then add in things.

If that doesn't work, you can use an inspector in Firefox or Chrome to see what CSS effects are applied.

You also may want to use the network inspector in Chrome to determine if your stylesheet is actually even getting downloaded or if the link is incorrect.


html {
    height: 100%;
}
body {
  background-color:#cccccc;
}

This worked for me. Without setting the height in html, the background-color property of body wouldn't work at all.


Override style from Bootstrap by adding `!important``

body{
    background-color: #32CD32 !important;
}

Tags:

Html

Css