Enmarcar una foto con CSS es muy sencillo, vasta con agregar estas pocas lineas de código.
<html>
<head>
<title>Foto con marco.</title>
<style type="text/css">
.marco_foto{
position: relative;
width:125px; /* ancho de la foto */
border:3px solid #FF0000; /* ancho del borde - grosor - color */
}
</style>
</head>
<body>
<img src="http://www.uterra.com/archcodfuente/demos_img/imagen07.jpg"
alt="Titulo foto" class="marco_foto"/>
</body>
</html>