css background colour

My CSS file contains my webpage display, the webpage is smaller than the screen (if you know what i mean) I am trying to fill the outside of my container with a background colour but it is not working. Can anybody help with this? here is my CSS

    #container  {
    width: 900px;
    margin: 0 auto;
    }

The body/ navigation etc are below the #container, does the background colour have to be before the container? I have placed it there and it is not working?

Answers


body {} in the css refers to the complete < body > of the website. Just set the background-color there, like:

body {background-color: #fedae3;}

of course, the container needs another background-color.


You could apply it to the body?

body {
  background-color:red;
}

Need Your Help

inetpub versus any other folder

iis

I've run websites out of inetpub, as well as from folders just residing on the C: drive. I wonder, are there any definitive advantages to running websites out of inetput\wwwroot?

PencilBlue - Custom Object Id's

node.js mongodb custom-object pencilblue

I'm working with PencilBlue, and I'm having trouble with the custom objects Id's. The "name" field is used as an Id, but I would like it to be just a regular field and have an "id" field as identif...