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?
CSS Borders
4 posts from 2 voices-
Posted 1 year ago #
-
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)
Posted 1 year ago # -
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
Posted 1 year ago # -
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; }Posted 1 year ago #
Reply
You must log in to post.














