How can i do this? please help

Discussion in 'HTML & Website Design' started by visualkreations, Jul 21, 2008.

  1. #1
    Hi,

    ok heres my situation.


    I have a div with nothing in it , just a background image.

    I also have some text behind this div (the reason its behind it is because i moved the div with relative positioning)

    I need the text behind the div to be on top so i can select the text.

    When i set the z-index on the div to -1 the whole div disappears, so that didn't work for me.


    any thoughts on how i can do this?


    Thanks a lot.
     
    visualkreations, Jul 21, 2008 IP
  2. kumbhdesign

    kumbhdesign Banned

    Messages:
    82
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    pm me your budget and contact details so we get back to you
     
    kumbhdesign, Jul 22, 2008 IP
  3. iamben

    iamben Active Member

    Messages:
    116
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    73
    #3
    Put the text inside a div or a span or a p or whatever, give it a class and then set the z-index of that class to 99 or something.

    Without looking at it, I can't really help much more :)
     
    iamben, Jul 22, 2008 IP
  4. RahulSaini

    RahulSaini Well-Known Member

    Messages:
    222
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    123
    #4
    i think you already solved your problem if not then you can do this in another way
    
    <div style='position:fixed;top:0;float:center;'>Text Goes Here</div>
    
    Code (markup):
     
    RahulSaini, Oct 14, 2012 IP