zuzuu Posted August 24, 2006 Share Posted August 24, 2006 Hi again I would like to ask you if it is possible to display only a part of an image.For exemple, my image is about 300px * 200px and I want to display the part about 100px * 100px.I do not want to resize my image, I just want to display the corner for example...Is it possible, because I found enought about this... Link to comment Share on other sites More sharing options...
holmedwa04 Posted August 24, 2006 Share Posted August 24, 2006 Hi again I would like to ask you if it is possible to display only a part of an image.For exemple, my image is about 300px * 200px and I want to display the part about 100px * 100px.I do not want to resize my image, I just want to display the corner for example...Is it possible, because I found enought about this...Well when resizing an image you use this code:<img height="in pixels" src="pic1.gif"> or you can use width, because it will keep the aspect ratio the same, so you only really need to use one of them, unless you want to have a specific size.As for actually cropping the image, im not sure whether that is possible without creating a duplicate of your original and the cropping it on an image editting program.I will just havea look around to see if I can find anything for you. Link to comment Share on other sites More sharing options...
zuzuu Posted August 24, 2006 Author Share Posted August 24, 2006 Thank you for your help!However it does not work... This action resize my image and display them more little but I see the entire image.I would like to see only a part...Maybe it is not possible...with only html? Link to comment Share on other sites More sharing options...
holmedwa04 Posted August 24, 2006 Share Posted August 24, 2006 Thank you for your help!However it does not work... This action resize my image and display them more little but I see the entire image.I would like to see only a part...Maybe it is not possible...with only html?Nope, I dont think you can with HTML, I have had a look aorund but all tutorials just tell you to use an image editting program, so I think you will have to make a duplicate and do it that way.Sorry that I couldn't really help you there! Link to comment Share on other sites More sharing options...
Cronthenoob Posted August 24, 2006 Share Posted August 24, 2006 It isn't possible with HTML. But you can use CSS!Try-it-YOURSELF!Good luck! Link to comment Share on other sites More sharing options...
zuzuu Posted August 24, 2006 Author Share Posted August 24, 2006 Yes thank you very much, it is exactly what I seached !!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now