How to use clip to only show the top 200px of an image?

cialis online

New Member
I am dealing with Facebook profile images, and their height can vary a lot in size.I am trying to use the clip CSS property to only get a maximum of 200px of the image. Here is what my CSS looks like:\[code\].fixed { position: relative; padding: 10px; background-color: #555555;}.inner { position: absolute; clip: rect(0 0 200px 0);}\[/code\]Here is the actual HTML:\[code\]<div class="fixed"> <div class="inner"> <img src="http://stackoverflow.com/questions/6382426/large.jpg"> </div> </div> \[/code\]No image is being displayed. It works without the clip, but I only want the top 200px of an image.Thanks!
 
Top