JSFiddle - React, Tailwind, and code Playground

by Steven Senkus

HTML

<div id="test">
    <div id="nested">
        
        
    </div>
    <img id="img" src="http://placedog.com/200/200" />
    
    
</div>
<button>SHOW</button>

CSS

#test {
    display: none;
    width: 400px;
    height: 400px;
    background: url('http://placedog.com/400/400') no-repeat 0 0 scroll #ff0;
}
 
#img {
    border: 2px solid #f00;
    width: 200px;
    height: 200px;
}

#nested {
    width: 100px;
    height: 100px;
    background: url('http://placedog.com/100/100') no-repeat 0 0 scroll #f00;
    
}

JavaScript

$(function () {
    $('button').click(function (e) {
        e.preventDefault();
        $('#test').show();
    });

})