JSFiddle - React, Tailwind, and code Playground

by dessibelle

HTML

<header id="header">
    <h1 class="inner"><a href="#">My site</a></h1>
</header>

<article id="main">
    <p class="inner">Lorem ipsum dolor sit amet, <a href="#">consectetur</a> adipisicing elit, sed do eiusmod tempor incididunt.</p>
</article>

<footer id="footer">
    <p class="inner">&copy; 2012 <a href="#">My site</a></p>
</footer>

<div id="background">
    <p>Some text and <a href="#">an important link</a></p>
</div>

CSS

#header, #main, #footer{
    width: 100%;
    z-index: 1;
}

#background {
    background: red;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.inner {
    margin: 0 auto;
    max-width: 80%;
    padding: 20px 5%;
    background: white;
}

#header {
    margin-bottom: 200px;
}

#background p {
    position: absolute;
    top: 100px;
    right: 100px;
    background: green;
    padding: 10px;
}

#background p a {
    color: white;
}

JavaScript

$('a').click(function() {
    alert("Hello there!");
});