overlay a div on a css iframe

Discussion in 'CSS' started by Webalized, Jun 5, 2010.

  1. #1
    Hello

    I've researched this a lot and haven't really come up with an answer. I need to overlay a div on top of an iframe. This is the way I would think to do it:

    
    .divname {
    position: static;
    top: 0;
    }
    
    Code (markup):
    So, I want it to always stay at the top of the page. Ads will be placed in this div.

    Thank you! Any help is really appreciated!
     
    Webalized, Jun 5, 2010 IP
  2. optimus203

    optimus203 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I believe you need to utlize the z-index property:

    .divname {
    position: static;
    top: 0;
    z-index: 100;
    }
     
    optimus203, Jun 5, 2010 IP