Return to Snippet

Revision: 21098
at December 3, 2009 10:01 by hanzwurzt


Initial Code
<p class="crop"><a href="http://templatica.com" title="Css Templates"><img src="img.jpg" alt="css template" /></a></p> 

.crop{
	float:left;
	margin:.5em 10px .5em 0;
	overflow:hidden; /* this is important */
	border:1px solid #ccc;
	}
	/* input values to crop the image: top, right, bottom, left */
.crop img{
	margin:-20px -15px -40px -55px;
	}

Initial URL
http://cssglobe.com/post/6089/3-easy-and-fast-css-techniques-for-faux-image

Initial Description

                                

Initial Title
Crop images with negative Margins

Initial Tags
css

Initial Language
CSS