www.webdeveloper.com
Results 1 to 3 of 3

Thread: Element position and size

  1. #1
    Join Date
    Apr 2005
    Posts
    210

    Element <DIV> position and size

    As searched in google, an element of <DIV> has following properties about its position and size:

    offset (Left, Top, Width, Height)
    client (Left, Top, Width, Height)
    scroll (Left, Top, Width, Height)

    Is there any other properties related to its position and size?
    Is there any properties related to right or bottom?

    (not from style.xxx)

    Thanks


    .
    Last edited by html20009876; 05-10-2012 at 01:51 PM.

  2. #2
    Join Date
    Feb 2011
    Posts
    231
    Hi
    If you set position: absolute; you can use right and bottom to position the Div:
    Code:
    #divid {
      position: absolute;
      right: 1px;
      bottom: 1px;
    }

  3. #3
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    It depends on what you want: to set the position/size or to get the position/size?

    Note: the offset left and top properties return the relative position (relative to the first parent node), not the absolute one.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles