Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Assume that the original picture is 500px in height and 400 px in width. I want to display this picture in website such that only 480px in visible in height. Is this possible using css?

Thanks a lot in advance.

share|improve this question

closed as off topic by iglvzx, soandos, Renan, Ellesa, Journeyman Geek Jul 18 '12 at 0:40

Questions on Super User are expected to relate to computer software or computer hardware within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 0 down vote accepted

You need to put your image as background to a div/span and change size of div/span to your desired size

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.