Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    Regular Coder che_anj's Avatar
    Join Date
    Aug 2006
    Location
    Philippines
    Posts
    157
    Thanks
    12
    Thanked 3 Times in 3 Posts

    how can i put a text in image?

    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.

  • #2
    Regular Coder
    Join Date
    Jul 2008
    Location
    UK
    Posts
    116
    Thanks
    4
    Thanked 0 Times in 0 Posts
    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

  • #3
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,801
    Thanks
    160
    Thanked 2,216 Times in 2,203 Posts
    Blog Entries
    1
    .. and to apply a z-index value, the element should have a position value other than static in the CSS.
    Last edited by abduraooft; 12-01-2008 at 01:03 PM.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #4
    Regular Coder
    Join Date
    Jul 2008
    Location
    UK
    Posts
    116
    Thanks
    4
    Thanked 0 Times in 0 Posts
    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

  • #5
    Regular Coder che_anj's Avatar
    Join Date
    Aug 2006
    Location
    Philippines
    Posts
    157
    Thanks
    12
    Thanked 3 Times in 3 Posts
    hi guys, thanks for the quick reply..

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

  • #6
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,801
    Thanks
    160
    Thanked 2,216 Times in 2,203 Posts
    Blog Entries
    1
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #7
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    821
    Thanks
    10
    Thanked 78 Times in 76 Posts
    Related topic here that might have some additional info: Create a graphical button with img and text?
    ☠ ☠RON☠ ☠

  • #8
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,486
    Thanks
    6
    Thanked 981 Times in 954 Posts
    Quote Originally Posted by AmmO View Post
    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.

  • #9
    New to the CF scene
    Join Date
    Dec 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I was looking to do the same thing, thanks for the replys.

  • #10
    New to the CF scene
    Join Date
    Dec 2008
    Location
    Massachusetts
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the pointers...I was always curious how to make this happen.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •