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

Slide out div, using .show ignones {position:absolute; bottom:0px;} in chrome & safari, works in firefox

jquery jquery-ui show-hide css

Im using jquery .hide to hide an "extra deatils" div inside of a parent div, when the user hovers over its parent it appears, using .show/.toggle (jquery-ui slide)

jquery disable the button when one fields text is removed?

jquery

Lets say I have two input text fields and a submit button in a form like this

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.