JSFiddle - React, Tailwind, and code Playground

by Jeremy Lewis

HTML

<!DOCTYPE html>
<html>
    
    <head>
        <link rel="stylesheet" type="text/css" href="bgtest1.css" />
    </head>
    
    <body>
        <!-- START MASTER DIV : Contains all other divs/blocks -->
        <div id="master">
            <div class="header"></div>
            <div class="nav"></div>
            <!-- Contains the bg image + middle content area -->
            <div class="midblock">
                <!-- this is the inside content of the midblock -->
                <div class="mid_inside"></div>
                <!-- END all middle area (bg + content) -->
            </div>
            <div class="footer"></div>
            <!-- END MASTER DIV -->
        </div>
    </body>

</html>

CSS

* {
    margin: 0px;
    padding: 0px;
}
html, body {
    height: 100%;
    overflow: hidden;
}
#master {
    height: 100%;
    background: rgb(255, 255, 255);
    width: 95%;
    margin: 0 auto;
    border: 1px solid rgb(0, 0, 0);
    overflow: hidden;
}
.header {
    height: 14%;
    background: rgb(0, 102, 204);
}
.nav {
    height: 8%;
    background: rgb(255, 140, 0);
}
.midblock {
    height: 70%;
    background: rgb(244, 244, 244);
    background-image: url('http://i475.photobucket.com/albums/rr120/mondo_trasho/Kit-Kat-Club-edit.jpg');
    background-size: 100% 100%;
    /* width height */
    -moz-background-size: 100% auto;
    /* for Firefox */
}
.mid_inside {
    height: 100%;
    width: 75%;
    background: rgb(200, 200, 200);
    margin: 0 auto;
}
.footer {
    height: 8%;
    background: rgb(255, 140, 0);
}