|
-
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.
-
Hi
If you set position: absolute; you can use right and bottom to position the Div:
Code:
#divid {
position: absolute;
right: 1px;
bottom: 1px;
}
-
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
-
Forum Rules
|
|
Bookmarks