Add border to image

I use the “Generic BBCode wrapper” system for this:

I put [wrap=border]...[/wrap] around the image that I want to add a border to, along with this CSS:

.d-wrap[data-wrap="border"] {
    > img, > p > img, .lightbox, .image-wrapper img {
        border: 1px solid #555;
        box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
    }
}
2 Likes