CSS Lightbox
1 div and 1 selector rule them all!
by BinaryAcid
HTML
<script src="http://jslib.dotcloud.com/fiddle-require.js"></script>
<div class="csslightbox">
<h2>This is lightbox title</h2>
<input type="submit" value="OK"/>
</div>
CSS
div.csslightbox {
position: fixed;
width: 50%;
left: 25%;
top: 25%;
background-color: #fff;
padding: 10px;
border: 5px solid #3CADE2;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
-moz-box-shadow: 0px 0px 10px rgba(0,0,0,0.3);
-webkit-box-shadow: 0px 0px 10px rgba(0,0,0,0.3);
box-shadow: 0px 0px 10px rgba(0,0,0,0.3);
}
h2 { font: normal bold 1.4em/1.2 helvetica,sans-serif; margin-bottom: 0.6em }