Thin borders with light backgrounds

A subtle border to your photos – a good idea if your color scheme calls for a light-colored border for your images. Sometimes the sky can blend into a surrounding light color, but by setting a small amount of padding we can simulate a double border on our photo:

img {
	border: 15px solid #def;
	background: #aaa;
	padding: 1px;
}

The subtle 1px border prevents the photo from ‘bleeding’ into its border.

Supercharge your image borders | Bite Size Standards

You may also like:

  1. Add Text Captions To Your Web Images with CSS; Drive More Traffic
  2. Add Beautiful Borders Around Digital Images in Photoshop
  3. Implement AdSense Revenue Sharing on a Multi-Author Blog
  4. Know What People Are Saying about a Web Page
  5. Use Google for Real-Time Web Search