Adding border and lines around images (2 posts)

  1. Anonymous
    Posted 7 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:

  2. JohnPope
    Posted 7 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