How can I display just a portion of an image in HTML/CSS?
As mentioned in the question, there is the clip css property, although it does require that the element being clipped is position: absolute; (which is a shame): .container { position: relative; } #clip { position: absolute; clip: rect(0, 100px, 200px, 0); /* clip: shape(top, right, bottom, left); NB ‘rect’ is the only available option */ … Read more