Fade-in-and-out and Lightboxes: A few tips

Here is a short article I wrote on how to fade in and out html elements, make sure they do not interfere with other elements when hidden, and create a lightbox that can be closed by clicking anywhere outside of it: Image Gallery Effects

Hope you find it helpful.