Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5473

    Hi, I have looked online for answers to this CSS question- I’m having trouble figuring out how to apply borders to only the images in posts.

    I don’t want borders around page or portfolio images, just blog post images. But when I added a border to .entry img it applied to everything. Is there an easy CSS fix for this in Cleancut?

    #50435

    Or is there a way to easily specify for some images to have borders (the majority on the site won’t but I want certain ones to have a border)

    #50436

    Okay I have gone in manually to apply borders to certain pages because I haven’t found any other way in the CSS to specify this. However take a look at this page- some images have an odd padding between the border and the image. http://altd.dev.amermancreative.com/egyptian-arabian-mares/black-arabians-mare-rhapsody-in-black

    #50437

    Hey,

    to remove the padding change following code in style.css:

    .entry img{
    padding:4px;
    display:block;
    }

    to:

    .entry img{
    padding:0;
    display:block;
    }

    To apply borders for posts only use following code (in style.css):

    .single img{
    border: 5px solid #6C6459;
    }

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘CSS Borders’ is closed to new replies.