Dylan Leblanc
02-04-2003, 07:22 AM
Hi,
I am wondering if there is a way to cover up the bottom part of an image using CSS, or maybe DHTML (but I don't know anything about DHTML).
Say for instance I have a regular JPEG image and display it using an <img src=""> tag. But, the image has a strip across the bottom with copyright text on it. Is there a way to obscure this strip so the user does not see the unaesthetic copyright text?
I assume if there is any way to do this that the dimensions of the image would need to be known. That is okay. It would be like taking a 500 x 320 pixel image, but allowing only the top 500 x 300 pixels to be shown, while still using the regular <img src=""> tag. Additionally, it would be best if it were possible to display other objects directly beneath this image, so the 20 pixels which are obscured would not leave a blank line.
I know how to do this using tables and background images, but want to do it using the regular image tag.
I am wondering if there is a way to cover up the bottom part of an image using CSS, or maybe DHTML (but I don't know anything about DHTML).
Say for instance I have a regular JPEG image and display it using an <img src=""> tag. But, the image has a strip across the bottom with copyright text on it. Is there a way to obscure this strip so the user does not see the unaesthetic copyright text?
I assume if there is any way to do this that the dimensions of the image would need to be known. That is okay. It would be like taking a 500 x 320 pixel image, but allowing only the top 500 x 300 pixels to be shown, while still using the regular <img src=""> tag. Additionally, it would be best if it were possible to display other objects directly beneath this image, so the 20 pixels which are obscured would not leave a blank line.
I know how to do this using tables and background images, but want to do it using the regular image tag.