Z-Index

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • b_naick@yahoo.ca

    #1

    Z-Index

    I have 2 "divs" in my page, as defined below.

    Given teh z-index values, I would expect the text in the "flash" class
    to overlay the video div.. But all I see is the video div.

    Any idea what i am doing wrong.. happens in IE only..

    -----

    <div id="tempDiv" class="flash">
    Text goes here
    </div>
    <div id="videoDiv" class="video">
    OBJECT TAG TO DEFINE A REAL PLAYER PLUGIN
    </div>

    The stylesheet defs are as follows:

    ..video
    {
    position:absolu te;
    top: 0px;
    left: 0px;
    z-index: 0;
    }
    ..flash
    {
    position:absolu te;
    top: 0px;
    left: 0px;
    width: 320px;
    height: 240px;
    background-color: green;
    color: red;
    z-index: 1000;
    }

  • RobG

    #2
    Re: Z-Index

    b_naick@yahoo.c a wrote:[color=blue]
    > I have 2 "divs" in my page, as defined below.
    >
    > Given teh z-index values, I would expect the text in the "flash" class
    > to overlay the video div.. But all I see is the video div.
    >
    > Any idea what i am doing wrong.. happens in IE only..[/color]

    In both Firefox and IE I get the green 'flash' div over the top of the
    'video' div.

    This is a CSS issue, try comp.infosystem s.www.authoring.stylesheets

    --
    Rob

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <title>blah</title>
    <meta http-equiv="Content-Type"
    content="text/html; charset=ISO-8859-1">
    <style type="text/css">
    ..video
    {
    position:absolu te;
    top: 0px;
    left: 0px;
    z-index: 0;
    }
    ..flash
    {
    position:absolu te;
    top: 0px;
    left: 0px;
    width: 320px;
    height: 240px;
    background-color: green;
    color: red;
    z-index: 1000;
    }
    </style>
    </head><body>

    <div id="tempDiv" class="flash">T ext goes here</div>

    <div id="videoDiv" class="video">
    OBJECT TAG TO DEFINE A REAL PLAYER PLUGIN
    </div>

    </body>
    </html>

    Comment

    • RobB

      #3
      Re: Z-Index

      b_na...@yahoo.c a wrote:[color=blue]
      > I have 2 "divs" in my page, as defined below.
      >
      > Given teh z-index values, I would expect the text in the "flash"[/color]
      class[color=blue]
      > to overlay the video div.. But all I see is the video div.
      >
      > Any idea what i am doing wrong.. happens in IE only..
      >
      > -----
      >
      > <div id="tempDiv" class="flash">
      > Text goes here
      > </div>
      > <div id="videoDiv" class="video">
      > OBJECT TAG TO DEFINE A REAL PLAYER PLUGIN
      > </div>
      >
      > The stylesheet defs are as follows:
      >
      > .video
      > {
      > position:absolu te;
      > top: 0px;
      > left: 0px;
      > z-index: 0;
      > }
      > .flash
      > {
      > position:absolu te;
      > top: 0px;
      > left: 0px;
      > width: 320px;
      > height: 240px;
      > background-color: green;
      > color: red;
      > z-index: 1000;
      > }[/color]



      Comment

      Working...