Results 1 to 2 of 2

Thread: how to position anything on a page without it moving in different resolutions ?

  1. #1
    Join Date
    Mar 2014
    Posts
    7
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default how to position anything on a page without it moving in different resolutions ?

    <div style="position: absolute; left: 465px; top: 485px; width: 305px;">
    this text
    </div>


    If I view this in a different resolution it is no longer in the same spot on the page. For example I work in 1920x1080 resolution and if I view the page in 1600x900 then the text will be moved off to the right.

    How do you position something on a page and make it stay in the exact same spot in all resolutions?

  2. #2
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Use percentages instead of pixels, ex. style="position: absolute; left: 20%; top: 15%; width: 40%;"

Similar Threads

  1. Replies: 0
    Last Post: 05-26-2014, 03:38 AM
  2. Moving the image scroller to a new position
    By nathanimate in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 09-29-2011, 09:45 PM
  3. Glossy Accordion Menu - +/- buttons moving out of position when clicked
    By orenlebbo in forum Dynamic Drive scripts help
    Replies: 6
    Last Post: 06-28-2011, 02:08 PM
  4. page aligmentment in various resolutions
    By golfer2536 in forum HTML
    Replies: 3
    Last Post: 01-26-2011, 05:25 PM
  5. Replies: 1
    Last Post: 10-10-2006, 05:33 PM

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
  •