I know some of you (particularly the web accessibility fans) don’t like to have an empty span tag in the markup. Well, I’ve solved this issue by using jQuery to append the span tag to the source code. Insert the following code in between the <head> tag:
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
//prepend span tag
$(".photo a").prepend("<span></span>");
});
</script>
#1. Simple Gallery (see demo)
Let’s take the technique from the previous step and apply it to create a photo gallery.

#1b. Mini Icons (see demo)
This example shows you how to position different icons on top of each photo (note: an extra CSS class name is required in the span tag).

#2. Photo With Text (see demo)
This example shows you how to create a gallery with linking text (em tag).

#2b. Popup Text (see demo)

#3. Mini Paper Clip (see demo)

#4. Cork Board Gallery (see demo, IE6 version)

sIFR Version (Flash Text Replacement) (see sIFR demo)
This example uses sIFR to replace the em text with a handwritten font (notes: in this demo, the span tag is appended by jQuery)

#4b. Cork Board With Masking Tape (see demo, IE6 version)

#5. Art Gallery - Black Frame (see demo)

#5b. Art Gallery - Gold Frame (see demo)

#6. Grungy Watercolor (see demo)

sIFR Version (see sIFR demo)

#7. Glossy Style (see demo)

#8. Wood Panel Gallery (see demo)
Finally, this example demonstrates how you can apply the background image to all elements to create a wood panel gallery: ul, li, and em.

|