I have a some picture with border add with photoshop but these border are dirty.
I would overwrite these border without doing it with photoshop again (Can not use a script because almost every picture are too specifics), because my client gave me about 15000 pictures with this error..
Then, I though about css border.
So, how can I make the border around the image to fill the inside of it ?
Is it possible ? Have you a better idea ?
EDIT
List of ideas which don’t work for my case:
- css attribute : border-style: inset (thank you anyway Abdul Basit)
- css attribute : clip
Thank you in advance.
2
Answers
you can give inset border
can add a width that covers approx of all borders
or you can use image as a border for all.
You can use
box-shadow
withinset
to simulate a border. However the box-shadow does not work directly on the image element, because it will render behind.You can solve this by making an
.image-wrapper
class with abox-shadow
on.And to make this shadow render in front of your image you just need to set the
z-index
to-1
.Demo