Results 1 to 2 of 2

Thread: Absolute Position DIV change position on different resolution

  1. #1
    Join Date
    Jul 2011
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Absolute Position DIV change position on different resolution

    Hello Guys,

    Hope you all are fine !
    I need your help and suggestion for the following problem.

    I have Login box similar to this website http://www.sittercity.com/, please click on the login button top right to see.

    But My Login Box change its position when I switch to different resolution (1366x768 to 1024x768). DIV position is set to absolute. I have tried to put this whole DIV in another DIV and set the parent DIV position to relative but that also does not make any difference. This technique worked for me last time but this its not working.

    Please give me your suggestions.

  2. #2
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,321
    Thanks
    30
    Thanked 137 Times in 132 Posts
    Blog Entries
    29

    Default

    You can make the position of a div identical for all screen resolutions by doing something like:
    <div style="position:absolute; left:100px; top: 100px; right: 100px; bottom: 100px">Your div</div>
    ===
    Arie Molendijk.

Bookmarks

Posting Permissions

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