WordPress.org

Ready to get started?Download WordPress

Forums

Add a frame to a picture (1 post)

  1. sidkhullar
    Member
    Posted 6 years ago #

    I write a food blog and had to insert my cropped and resized images into a frame and then publish it to a jpg from photoshop for every single post.

    Try this CSS class instead. If you want to see what it looks like, check out the posts here: http://food.sidkhullar.com.

    .imgborder img{

    background: url(images/img-frame.jpg);
    padding-left:34px;
    padding-right:35px;
    padding-bottom:83px;
    padding-top:27px;

    }

    This one of course has been optimised for the border I'm using, however, a little tweaking and your borders too will fit in quite easily.

    Just use 'class="imgborder"' in the table cell where you post your picture.

    Hope this helps.

    Sid

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 6 years ago by sidkhullar
  • This topic is not a support question
  • WordPress version: 2.3.1