JSFiddle - React, Tailwind, and code Playground

HTML

<html>
    <head>
        <title></title>
        <style>
            body {
                margin: 0px;
            }
            .div1 {
                -webkit-transform-style: preserve-3d;
                width: 300px;
                height: 300px;
                display:block;                
            }
            .div2 {
                position: absolute;
                width: 100%;
                height: 100%;
            }
            img {
                max-width: 50%;
                max-height: 50%;
                display: block;
            }            
            .footer {
                position: fixed;
                bottom : 0px;
            }
        </style>
    </head>
    <body>
            <div class="div1">
                <div class="div2">
                    <div class="header">
                        Header
                    </div>
                    <div class="imgdiv">
                        <img src="http://static.guim.co.uk/sys-images/Guardian/Pix/pictures/2012/5/18/1337331092888/Cwm-Idwal-Snowdonia.-Mich-007.jpg">
                    </div>
                    <div class="footer">
                        Footer
                    </div>
                </div>
            </div>
    </body>
</html>