1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

CSS Total Layer Issues

Discussion in 'Web Development' started by SympliG0th, Jun 24, 2006.

  1. SympliG0th

    SympliG0th New Member

    okay..i know it can be done..I've done it with iframes..but for some reason I can't do it with freakin' layers!

    How do you pin a layer's location no matter what the resolution or window size is!?!! ugh I feel dumb right now..
     
  2. Mimoun

    Mimoun Administrator Staff Member Director Verified Member

    You can do this easily with CSS.
    In your style page the file which has the name style.css in most of our templates. Give your layer the property position:absolute; and the position with top and left.

    Which looks like this in code.
    Code:
    #pinbox{
    position:absolute;
    top:200px;
    left:200px;
    }
    Make sure your layer has the same name which looks something like this:
    Code:
    <div id="pinbox">I want to pin this box</div>