z-index

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bill

    z-index

    Hi



    Hovering the sentence at the right edge displays some text which I
    want to be in front of anything else but it won't.

    Is it because of the negative margin ??


    Thanks

  • Jukka K. Korpela

    #2
    Re: z-index

    Scripsit Bill:
    Server not found.

    --
    Jukka K. Korpela ("Yucca")

    Comment

    • Ben C

      #3
      Re: z-index

      On 2007-05-03, Bill <billlab51@hotm ail.comwrote:
      Hi
      >

      >
      Hovering the sentence at the right edge displays some text which I
      want to be in front of anything else but it won't.
      >
      Is it because of the negative margin ??
      It's because z-index only applies to positioned elements.

      You could make .hdr .H3 P position: relative and z-index: 1 (no need for
      any of the other z-index settings), since that leaves it in the normal
      flow. But then you will have to remove the settings of "left" and "top"
      for .hdr .H3 P since when position is relative they are no longer
      harmlessly meaningless as they are at present.

      Don't put <pinside <h3>, it's invalid and you don't know how browsers
      might "patch it up".

      Comment

      • Bill

        #4
        Re: z-index

        On 4 mai, 05:31, Ben C <spams...@spam. eggswrote:

        Works #1, thanks Ben

        You could make .hdr .H3 P position: relative and z-index: 1 (no need for
        Don't put <pinside <h3>, it's invalid and you don't know how browsers
        might "patch it up".

        Comment

        Working...