There is a border around the pics on this site www.waynesboroheritagefoundation.com but the way that the achieve this border is by placing a border around the image in photoshop, or whichever program that they use.
I was wondering if it is possible to achieve the same, or similar, effect using just css?
I think that a purely CSS solution would be much more flexible and you wouldn’t have to worry about the load time for an image (which I know is not generally a great concern now but I am old school. 🙂 )
Thanks for reading and any suggestions!
Jim
2
Answers
You probably mean this effect:
As you can see, it is in the picture itself, made with some kind of photo editor.
You can also do it with pure CSS, by wrapping your image in a span (or some other element):
HTML:
CSS:
Live demo: JSFiddle.
EDIT
Based on King King‘s excellent comment, an even better solution is to add a white border to the image instead of wrapping it in a span.
Check this demo.
the white border can be given by putting above code.
further read : http://css-tricks.com/understanding-border-image/