WordPress.org

Ready to get started?Download WordPress

Forums

Adding border and lines around images (2 posts)

  1. Anonymous
    Unregistered
    Posted 6 years ago #

    I'm making my own blog using the freshy2 theme, and I'd like all the pictures to include a 3 pixel border, followed by a 1 pixel thick rectangle outlining the image, and another 3 pixel border outside the rectangle.

    Here's a screenshot of what I want to achieve:
    http://i33.tinypic.com/1zl83ee.jpg

  2. JohnPope
    Member
    Posted 6 years ago #

    Add this to your css file

    img {padding:3px; border: 1px solid #000; margin:3px;}

    That will put the border around every image on your site, if you want to only do it with certain images then you will need to assign a class to them, and swap "img" in my example for the class name.

Topic Closed

This topic has been closed to new replies.

About this Topic