JSFiddle - React, Tailwind, and code Playground

by Wolf Wortmann

HTML

<!doctype html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
    <header>
    </header>
    <div><!-- google+ --></div>
    <aside>
        <nav>
            <ul>
                <li><a href="">Eins</a></li>
                <li><a href="">Zwoa</a></li>
                <li><a href="">Drei</a></li>
            </ul>
        </nav>
    </aside>
    <section>
        <article>
            <!-- Gallerie -->
        </article>
    </section>
    <footer>
        &copy;, nobody cares!
    </footer>
</body>
</html>

CSS

/* reset */
*{margin: 0; padding: 0;}
html{
    background-color: rgba(255,117,35, 1);
    color: rgba(255,255,255, 1);
}
body{
    width: 90%;
    margin: auto;
    background-color: rgba(0,0,0, 1);
}
a{
    color: rgba(255,255,255, 0.6);
    text-decoration: none;
}
a:hover{
    color: rgba(255,255,255, 1);
}
/* nur header ansprechen, die DIREKTE Kinder von body sind */
body>header{
    background: url(hierDasBild.jpg) no-repeat scroll 0 0;
    height: 100px;
    width: 100%;
}
body>div{
    margin: 140px 20px auto 20px;
}
body>section{

}
/* aside und article */
body>aside, body>section{
    float: left;
    padding: 20px;
    /* bewirkt, das border und padding das Elem. nicht vergrößern */
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
body>aside{
    width: 140px;
}
/* a Elem. ansprechen, die kinder von nav sind */
nav a{
    /* ein block element draus machen (box klickbar) */
    display: block;
    color: rgba(0,0,0, 1);
    padding: 20px;
    text-align: center;
    background-color: rgba(255,117,35, 1);
    border-bottom: 2px solid rgba(0,0,0, 1);
}
nav a:hover, nav a:active{
    margin-left: -3px;
    margin-right: 3px;
    color: rgba(0,0,0, 1);
}
/* listen Punkte ausschalten */
nav li{
    list-style-type: none;
}
body>section{
    /* Seite - menü - rechter Abstand*/
    width: calc(100% - 140px - 20px);
    min-height: 300px;
    background-color: rgba(255,255,255, 0.5);
    margin-top: 20px;
}
body>footer{
    /* float stopping */
    clear: both;
    background-color: rgba(0,0,0, 1);
    padding: 10px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;