Is there a way to "lock" layers?

Discussion in 'HTML & Website Design' started by chewie49, Aug 19, 2008.

  1. #1
    Hi!

    When I put some elements as "layers" using dreamweaver, I have noticed they move in some browsers or screen resolutions.

    Sometimes when i put a tittle inside a layer (i.e.
    ) It change its position affecting the design and in some cases it moves in front other element hiding it.

    What I want is to LOCK the layer so it stay in its position no matter what screen resolution or browser the visitor uses.

    Anyone could please tell me how to do this?

    Regards,

    Chewie.
     
    chewie49, Aug 19, 2008 IP
  2. psychotronic

    psychotronic Peon

    Messages:
    133
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you should put a div wrapper for the absolute layer (div with absolute position a should be nested div)

    so the code should be like this :
    <div id="wrapper">
    <div id="Layer1" style="position:absolute; width:200px; height:115px; z-index:1; left: 366px; top: 292px;">TITLE</div>
    </div>
    Code (markup):
     
    psychotronic, Aug 19, 2008 IP
  3. alexme

    alexme Guest

    Messages:
    178
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You should really contains the styles in a style sheet file and refer to it like "style.css"...
     
    alexme, Aug 19, 2008 IP