Styling individual images is great when a user is uploading one or two images and manually inserting them. However, WordPress' real image-displaying prowess comes in the form of its gallery capabilities.
A WordPress gallery is output by using the
gallery shortcode within a post. It collects all of the images attached to a post via the media uploader, and then outputs them using standard markup. Because the markup is consistent, styling it is easy.
For this recipe, you need to have a basic theme created already. It should include a
single.php file that displays full post content. If you don't have one, use the Default WordPress theme as a guide, or visit http://codex.wordpress.com/Theme_Development ...