Centering and adding borders to Wordpress gallery images

1 star2 stars3 stars4 stars5 stars (1 votes, average: 3 out of 5)
Loading ... Loading ...

Make your individual image gallery photo’s look better start by adding a border and centering the image.

Wordpress Gallery Images

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; }

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google

About the Author -


Post a Comment

Your email is never shared. Required fields are marked *

*
*