Treehouse: Grow your CSS skills. Land your dream job.

z-index and selecting text

  • # March 18, 2010 at 11:57 am

    Hello friends!

    Ok, so I think I understand z-index pretty much now, except for one thing.

    I have my tree image over my text so when the text scrolls it goes under the image. Down side is, when I try to select text that is within the box range of the image, I’m grabbing the image and not selecting text. Is there any way around this while keeping the image on top?

    # March 18, 2010 at 11:58 am

    Sorry, trying to delete this… accidentally reposted

    # March 19, 2010 at 12:27 pm

    you can give paragraphs a z-index of 1…

    p { z-index: 1; }
    # March 19, 2010 at 6:02 pm

    makeshift… awesome thought. Tried it and look what happened… in Safari it doesn’t seem to have made a difference, but in firefox I don’t even get what is happening. it seems to be dragging a very small box when I try to select text under the tree image. I’m so confused! :-)

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.