Archived topic
How can i add image frame?
1 reply · Started by Daniel on December 8, 2018
How can i add frame to images on single posts?
I have tried adding this code in css, but it brakes images on front page and category pages.
img {border: 1px double #ddd; padding: 5px;}
For example i want to add image frame to these pages:
https://www.thebestpicks.com/best-vacation-spots-to-put-on-your-bucket-list/
https://www.thebestpicks.com/best-web-hosting-providers/
Hi there,
try this:
.single-post .entry-content img {
border: 1px double #ddd;
padding: 5px;
box-sizing: border-box;
}
It will only apply to single posts and to the content of the post, so will ignore the page header.