I am trying to create a website that looks as following: http://i.stack.imgur.com/9YHAs.jpg
The header is working, but I cannot get the "main" to work and tried several options. I tried to float a png as image-background to the center and also tried with display:inline-block and background-color:white. My code is as following:

HTML:    &lt;!DOCTYPE html&gt;
    &lt;html&gt;
        &lt;head&gt;
            &lt;title&gt;Home - Portfolio Daniek&lt;/title&gt;
            &lt;link rel="stylesheet" type="text/css" href="normalize.css"&gt;
            &lt;link rel="stylesheet" type="text/css" href="stylesheet.css"&gt;
            &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt;
            &lt;script src="menutoggle.js"&gt;&lt;/script&gt;
            &lt;meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"&gt;
        &lt;/head&gt;
        &lt;body class="index"&gt;
            &lt;nav class="clearfix"&gt;
                &lt;ul class="clearfix"&gt;
                    &lt;li&gt;&lt;a href="index.html"&gt;Home&lt;/a&gt;&lt;/li&gt;
                    &lt;li&gt;&lt;a href="about.html"&gt;Over&lt;/a&gt;&lt;/li&gt;
                    &lt;li&gt;&lt;a href="portfolio.html"&gt;Portfolio&lt;/a&gt;&lt;/li&gt;
                    &lt;li&gt;&lt;a href="contact.html"&gt;Contact&lt;/a&gt;&lt;/li&gt;
                &lt;/ul&gt;
            &lt;a href="#" id="pull"&gt;Menu&lt;/a&gt;
        &lt;/nav&gt;
        &lt;main class="bg"&gt;
            &lt;p&gt;Hi&lt;/p&gt;
        &lt;/main&gt;
        &lt;/body&gt;
CSS:
    .bg {
        margin-top: 10%;
        margin-left: auto;
        margin-right: auto;
        width: 90%;
        height: 90%;
        color: white;
        background-image: url('bg.png');
    }


Anybody got any solutions how to get this to work?


Question: My computer will not reboot after fresh install of ubuntu 12.04LTS
Answer: I would go back and reinstall Ubuntu again. Typically, the open source version of that driver works better. See this answer for more information on the open source version of that driver. Install Ubuntu again and try the solution in the link I gave you.

Good luck!