Borders and edge treatments are commonly used on images placed on web pages and probably most often for hyperlinked images.
Two ways to apply borders to images:
1. Directly to image in photo editor (like photoshop)
2. By using CSS background images
If you have a large number of images that you want to give the same style to then CSS is the better route to go because it saves time and is very simple. However, Beaird says that there are still times when Photoshop is the best choice.
ExampleCSS borders have 3 properties: width, style, and color. All of which can be controlled individually. Also, there are 8 different border styles to choose from dotted, dashed, double, solid, etc. After you have applied a CSS border you can update and edit multiple images all at once. One thing you may want to consider is that different browsers display borders with some minor differences, but the outcome is still ok.
Borders have the potential to be easily ugly and very distracting from the actual image you want viewers to focus on. The most important thing to remember is that borders and edge effects should enhance the image and not drown it out.
More examples of good borders and edge effects:
1.
13strides2.
simplebitsIf you want to have a gallery of some sort on your webpage Beaird suggests
zenphoto.org where you can download a free tool to feature your work. It also gives you the option to create different themes for your gallery to fit the feel of your site.
Example of zenphoto in use.