• I want to add an image to by blog with the theme’s border around. Normally when I add an image and add a caption to that the image is automatically given a border. But if do not add a caption, the image has none?

    Any suggestions?

Viewing 5 replies - 1 through 5 (of 5 total)
  • adapt the image styles in the style.css ?

    can you post a link to your site?

    css/formatting questions (which, imho, are not the main purpose of a wordpress support forum) cannot really be answered without seeing the live site.

    Thread Starter michael180

    (@michael180)

    REF: http://moderntimes.com/blog

    Thanks for responding.

    As long as I have a caption as in all of these images, I get the gray border around the picture. But when there is no caption there is no border. I thought about editing the style sheet, but I was afraid it would conflict with the theme, and I quite like the border.

    try to add these styles to style.css of the child theme (/wp-content/themes/child_of_core/style.css):

    #contentleft img {
      padding: 7px;
      background: #f4f4f4;
      -moz-border-radius: 3px;
      -khtml-border-radius: 3px;
      -webkit-border-radius: 3px;
      }
    #contentleft .wp-caption img {
      padding: 0;
      }

    edit:
    this is also needed to keep the author avatar as it was:

    #contentleft .authorbox img {
      padding: 3px; background: #fff;
      }

    (not tested for interference with all possible pages in the site)

    Is the Image inside a post? Don’t forget you have an HTML tab to edit the HTML directly. You can find your <img> and add a style just to it e.g. <img style=”border 1px solid #eee;” />

    Thread Starter michael180

    (@michael180)

    Great point. I didn’t think about doing it that way.

    Thank you . . .

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Image with border . . .’ is closed to new replies.