How to put single pixel border around image / featured image

Posted in: Newsmag
Post count: 23

How do I put a single pixel border around the featured image or thumbnail apeparing on home page or around an image appearing inside a post?

Post count: 6535

Hi

To put a border around the thumbs from homepage you can use custom css and target their specific classes. The css must be added in theme panel > custom css: http://screencast.com/t/WFIzbqIp6yfF

.home .td-module-thumb img{
border: 1px solid #3214e0;
}

For images from post content the css could be like this:

.td-post-content img{
border: 1px solid #3214e0;
}

This css add a 1px border around every image from post content, if you want the border only for a specific image must add a css class in post editor like here: http://screencast.com/t/nKmySTvEMc3http://screencast.com/t/5TMgSeeE

Let me know how it goes and provide more details if you still need assistance on this.

Thanks!

Post count: 23

Thanks. It worked perfectly.

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newsmag’ is closed to new topics and replies.