how do you crop images in css

liunx

Guest
does anybody know the css code?

like so you can say cut 20px off from the left, 100px off from the bottom etc?You'll want to use the clip: property. Find out more here: <!-- m --><a class="postlink" href="http://www.w3.org/TR/CSS2/visufx.html#clipping">http://www.w3.org/TR/CSS2/visufx.html#clipping</a><!-- m -->

and

<!-- m --><a class="postlink" href="http://www.w3schools.com/css/pr_pos_clip.asp">http://www.w3schools.com/css/pr_pos_clip.asp</a><!-- m -->
 
Back
Top