Results 1 to 5 of 5

Thread: The values of 'position:absolute'

  1. #1
    Join Date
    Dec 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default The values of 'position:absolute'

    Hello.

    Usually, 'position:absolute'takes absolute values like this : { position:absolute left:800px top:200px }

    But with the smaller window, it cause the 'out of sight'.

    So I wanna use relative values instead of absolute values.

    Is there some ways to do it?

    Thanks.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    The same:
    Code:
    position: absolute;
    left: 20%;
    top: 20%;
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Dec 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    To Twey :

    Sorry, that's not what I want.

    I want a box that fixed in same position in the window.



    For example :

    There is a box 'A' which has 600px width and located on center of Web Browser Window.
    There is an another box 'B' which has 100px width and located on beside of 'A' when the Web Browser Window is full-size.

    Apply the absolute values or percentage values on 'B' and let the window be smaller, 'B' is not located on beside of 'A' anymore.

    What I want is locate 'B' on beside of 'A' in any size of the window.



    Thank you anyway.

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Sorry, I don't understand you :-\ If you type the question in your native language I or djr33 may be able to get a better understanding of what you want, presuming you speak a Romance or Germanic language or Japanese.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You probably don't want absolute positioning then, floats or default (static) positioning might be better, or if absolute positioning is used, it should be inside a relative positioned container of fixed dimensions, which would set the boundaries for the absolute content.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •