...

View Full Version : how can i put a text in image?



che_anj
12-01-2008, 12:06 PM
hi guys,

Im just wondering if its possible to put a text on the image, except using the image as background.

thanks for any help.

AmmO
12-01-2008, 12:19 PM
well if u used the Z-index style proopety and set the image's z index to a minus number it would appear behind the text.

Only way i can think of doing it

abduraooft
12-01-2008, 12:21 PM
.. and to apply a z-index value, the element should have a position value other than static in the CSS.

AmmO
12-01-2008, 12:34 PM
yes inded it shoould, but i thought it must have a position set as absolute or at least thats what it says on W3C schools

che_anj
12-01-2008, 12:45 PM
hi guys, thanks for the quick reply..

could u give me an example how to do it? thanksss

abduraooft
12-01-2008, 01:04 PM
http://www.w3schools.com/Css/pr_pos_z-index.asp

Major Payne
12-02-2008, 09:47 AM
Related topic here that might have some additional info: Create a graphical button with img and text? (http://www.codingforums.com/showthread.php?p=755405#post755405)

VIPStephan
12-02-2008, 11:41 AM
well if u used the Z-index style proopety and set the image's z index to a minus number it would appear behind the text.

Only way i can think of doing it

Negative z index isnít supported in all browsers (and itís not only IE that doesnít support it). Rather, the text should be positioned absolutely over the image.

achris
12-02-2008, 12:40 PM
I was looking to do the same thing, thanks for the replys.

gmrtss
12-02-2008, 10:46 PM
Thanks for the pointers...I was always curious how to make this happen.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum