Over a million developers have joined DZone.

Cool Image Border

·
// This is a cool image border to add some background to the image and the border


.photo {
	text-align: center;
	padding: 2px;
	border: 2px #006600 solid; 
}	

.photo:hover {
	border: 2px #003366 solid; 
}	
Topics:

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}