JSFiddle - React, Tailwind, and code Playground

by Brad Christie

HTML

<link rel="stylesheet" href="http://fancybox.net/js/fancybox-1.3.4/jquery.fancybox-1.3.4.css">
<script src="http://fancybox.net/js/fancybox-1.3.4/jquery.fancybox-1.3.4.js"></script>
<p>
    Credit goes to <a href="http://freedigitalphotos.net/">FreeDigitalPhotos.net</a> for images.
</p>
<br />
<table>
    <tr>
        <td>
            <a href="http://www.freedigitalphotos.net/images/photos/conference_room.jpg">
                <img src="http://www.freedigitalphotos.net/images/photos/conference_room.jpg" width="200" height="200" alt="freedigitalphotos.net - Conference Room" title="Conference Room" />
            </a>
        </td>
        <td>
            <a href="http://www.freedigitalphotos.net/images/photos/Cityjpg.jpg">
                <img src="http://www.freedigitalphotos.net/images/photos/Cityjpg.jpg" width="200" height="200" alt="freedigitalphotos.net - City" title="City" />
            </a>
        </td>
    </tr>
    <tr>
        <td>
            <a href="http://www.freedigitalphotos.net/images/photos/DSC07707.jpg">
                <img src="http://www.freedigitalphotos.net/images/photos/DSC07707.jpg" width="200" height="200" alt="freedigitalphotos.net - Brisbane" title="Brisbane" />
            </a>
        </td>
        <td>
            <a href="http://www.freedigitalphotos.net/images/photos/D30_4693.jpg">
                <img src="http://www.freedigitalphotos.net/images/photos/D30_4693.jpg" width="200" height="200" alt="freedigitalphotos.net - Boston Skyline" title="Boston Skyline" />
            </a>
        </td>
    </tr>
</table>

CSS

/*
 * FancyBox - jQuery Plugin
 * Simple and fancy lightbox alternative
 *
 * Examples and documentation at: http://fancybox.net
 * 
 * Copyright (c) 2008 - 2010 Janis Skarnelis
 * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
 * 
 * Version: 1.3.4 (11/11/2010)
 * Requires: jQuery v1.3+
 *
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */

#fancybox-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    cursor: pointer;
    overflow: hidden;
    z-index: 1104;
    display: none;
}

#fancybox-loading div {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 480px;
    background-image: url('http://fancybox.net/fancybox.png');
}

#fancybox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    display: none;
}

#fancybox-tmp {
    padding: 0;
    margin: 0;
    border: 0;
    overflow: auto;
    display: none;
}

#fancybox-wrap {
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px;
    z-index: 1101;
    outline: none;
    display: none;
}

#fancybox-outer {
    position: relative;
    width: 100%;
    height: 100%;
    background: #fff;
}

#fancybox-content {
    width: 0;
    height: 0;
    padding: 0;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1102;
    border: 0px solid #fff;
}

#fancybox-hide-sel-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1101;
}

#fancybox-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: transparent url('http://fancybox.net/fancybox.png') -40px 0px;
    cursor: pointer;
  ...

JavaScript

$("a").fancybox({
    //modal: true
});