Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Senior Member
    Join Date
    Apr 2003
    Location
    Hamden Ct
    Posts
    103
    Member #
    1121
    Okay, so I'm trying to position this layer, but it just stays in the upper left hand corner. Here is the code:
    Code:
    <div id="Layer1" style="position:absolute; left:156; top:94; width:150px; height:20px; z-index:1;">sadfasd</div>

  2.  

  3. #2
    Junior Member tryton's Avatar
    Join Date
    Aug 2003
    Posts
    8
    Member #
    2828
    Code:
    <div id="Layer1" style="position:absolute; left:156; top:94; width:150px; height:20px; z-index:1;">sadfasd</div>
    Try making the top attribute first, like this:
    Code:
    <div id="Layer1" style="position:absolute; top:94; left:156; width:150px; height:20px; z-index:1;">sadfasd</div>
    Otherwise, check this tutorial out for more help:
    http://www.yourhtmlsource.com/styles...csslayout.html

  4. #3
    Senior Member skrlin's Avatar
    Join Date
    Apr 2003
    Location
    Illinois
    Posts
    562
    Member #
    1063
    The only reason I can think of that it may still position itself like that is if it is nested in another div or a table.

    Attached is your code in action, the only thing I changed is adding "px" after the top and left values. If that doesn't work or if it's nested in something else try changing the position attribute from absolute to relative.
    - Brian

  5. #4
    Senior Member skrlin's Avatar
    Join Date
    Apr 2003
    Location
    Illinois
    Posts
    562
    Member #
    1063
    Forgot the attachment.
    - Brian


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 06:15 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com