| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor|
|CSS: place text over image links|
| 11:30 pm on Jul 6, 2007 (gmt 0)|
I want to use a semi-transparent image to appear on top of image links.
Example would be when you hover over a product then the text "Click here to purchase" would appear on top of the image and the original image would still be visible.
I suppose just one image containing the text would be used, so like an image that's 100x100 wouldn't be replace but another image that's 100x100 would show up on top of it with the text.
Is this possible with css?
Other methods would require lots of coding and this would be just one image, a css style, and a span tag or something.
| 12:05 am on Jul 7, 2007 (gmt 0)|
An easy method using CSS would be to swap images on hover:
| 12:37 am on Jul 7, 2007 (gmt 0)|
Yeah but then I'd need a seperate css style for every image I wanted the hover effect on. Plus I'd also have to create a seperate hover image for every one also.
| 1:48 am on Jul 7, 2007 (gmt 0)|
| 4:36 am on Jul 7, 2007 (gmt 0)|
Text may work just as well. I think I've found something that will probably do the job,
cssplay dot co dot uk slash opacity slash image_linktext
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
© Webmaster World 1996-2014 all rights reserved