Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2002
    Location
    North Carolina
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How do I relative position this script?

    http://www.dynamicdrive.com/dynamici.../dropinbox.htm

    I just want the box to be centered in whatever environment it finds itself.

    Changing the below to "position:relative" causes the window to come in at the bottom of the monitor....

    id="dropin" style="position:absolute;visibility:hidden;left:350;top:100;width:450;height:325;background-color:#000000">

    Any Ideas?

    Thanks!

    Rick

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No, leave it's position: absolute and make the position of the parent element, whatever it may be, relative.
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    623
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It has to be positioned absolutely. You could probably set the position depending on its container but why not just use the CSS left and top attributes?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •