Discrepancy in using background-color for some css styling
<p>So I am pasting the code here:</p>

<pre><code>&lt;!doctype html&gt;
</code></pre>

<p></p>

<pre><code>&lt;head&gt;

    &lt;title&gt;Skeleton website&lt;/title&gt;

    &lt;style type="text/css"&gt;
        *
        {
            margin: 0;
            padding: 0;
            background-color: gray;
        }
        .pagewidth
        {
            width: 1250px;
            /*background-color: gray;*/
        }
        #header
        {
            text-align: center;
            background-color: white;
        }
        .clinks
        {
            display: inline;
            background-color: white;
        }
        #maincontent
        {
            background-color: black;
        }
        #partition_1
        {
            width: 310px;
            min-height: 100px;
            background-color: red;
            float: left;
            border-left: solid 1.25px black;
            border-right: solid 1.25px black;
        }
        #partition_2
        {
            width: 310px;
            min-height: 100px;
            background-color: blue;
            float: left;
            border-left: solid 1.25px black;
            border-right: solid 1.25px black;
        }
        #partition_3
        {
            width: 310px;
            min-height: 100px;
            background-color: green;
            float: left;
            border-left: solid 1.25px black;
            border-right: solid 1.25px black;
        }
        #partition_4
        {
            width: 310px;
            min-height: 100px;
            background-color: violet;
            float: left;
            border-left: solid 1.25px black;
            border-right: solid 1.25px black;
        }
        #partition_1_h
        {
            width: 310px;
            height: 20px;
            background-color: orange;

        }
        #partition_2_h
        {
            width: 310px;
            height: 20px;
            background-color: pink;

        }
        #partition_3_h
        {
            width: 310px;
            height: 20px;
            background-color: white;

        }
        #partition_4_h
        {
            width: 310px;
            height: 20px;
            background-color: yellow;

        }
    &lt;/style&gt;


&lt;/head&gt;

&lt;body&gt;
    &lt;div class = "pagewidth" id = "header"&gt;
        &lt;div id = "logo"&gt;Logo goes here&lt;/div&gt;

        &lt;div id="controllinks"&gt;
            &lt;div class = "clinks" id="Clink1"&gt;Link 1&lt;/div&gt;
            &lt;div class = "clinks" id="Clink1"&gt;Link 2&lt;/div&gt;
            &lt;div class = "clinks" id="Clink1"&gt;Link 3&lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;  
        &lt;!-- &lt;div id = "headerlinks"&gt;&lt;/div&gt; --&gt;
    &lt;div class = "pagewidth" id = "maincontent"&gt;
        &lt;div id = "partition_1"&gt;
            &lt;div id = "partition_1_h"&gt;&lt;/div&gt;
        &lt;/div&gt;
        &lt;div id = "partition_2"&gt;
            &lt;div id = "partition_2_h"&gt;&lt;/div&gt;
        &lt;/div&gt;
        &lt;div id = "partition_3"&gt;
            &lt;div id = "partition_3_h"&gt;&lt;/div&gt;
        &lt;/div&gt;
        &lt;div id = "partition_4"&gt;
            &lt;div id = "partition_4_h"&gt;&lt;/div&gt;
        &lt;/div&gt;
    &lt;/div&gt;


    &lt;div class = "pagewidth" id = "footer"&gt;&lt;/div&gt;
    &lt;script type="text/javascript" src = "jquery.min.js"&gt;

    &lt;/script&gt;
&lt;/body&gt;
</code></pre>

<p></p>

<p>A pretty standard skeleton for a website, I think!
So here's my question:
Why isn't the background-color: white in the #header styling portion getting applied?
If you notice way up where at the start of the styling section, I have applied 0 margins and padding for all elements unless otherwise specified. After that I made sure to add different background-color attributes to all the different elements on the webpage.
They work just well and perfectly override the * css styling.
However, as far as the header id is concerned, it is having trouble overriding the gray applied to the entire webpage with the white that is specified.
Does anyone know why this might be happened? I am thoroughly confused and honestly a little frustrated. This has got to be a minute detail I am missing out on, but I need a second pair of eyes and a hand to smack my head and point me in the right direction.</p>

<p>Thanks  a ton! Appreciate it a lot!</p>

<p>Cheers.</p>