Centering and adding borders to WordPress gallery images
Make your individual image gallery photo’s look better start by adding a border and centering the image.

WordPress 2.5 includes image galleries for sets of related images. Unfortunately as this is a new feature it also has yet to be refined. Add the following WordPress code snippet to your theme’s style.css file…
.post p.attachment{ padding:3px;border:1px solid #aaa; }
.post p.attachment img{ margin:0 auto;display:block; }







No Comments
There are currently no comments for this article.
Sorry, the comment form is closed at this time.