Last post Aug 23, 2016 12:19 PM by mgebhard
Contributor
2231 Points
3706 Posts
Aug 23, 2016 12:05 PM|sudip_inn|LINK
please give me a easy example which explain the difference between CSS absolute and relative positioning. thanks
All-Star
52091 Points
23222 Posts
Aug 23, 2016 12:19 PM|mgebhard|LINK
sudip_inn please give me a easy example which explain the difference between CSS absolute and relative positioning. thanks
Please see any openly published CSS reference documentation.
Absolute: The element is positioned relative to its first positioned (not static) ancestor element
Relative: The element is positioned relative to its normal position, so "left:20px" adds 20 pixels to the element's LEFT position
Reference: http://www.w3schools.com/cssref/pr_class_position.asp
Contributor
2231 Points
3706 Posts
What is difference between CSS absolute and relative positioning
Aug 23, 2016 12:05 PM|sudip_inn|LINK
please give me a easy example which explain the difference between CSS absolute and relative positioning. thanks
All-Star
52091 Points
23222 Posts
Re: What is difference between CSS absolute and relative positioning
Aug 23, 2016 12:19 PM|mgebhard|LINK
Please see any openly published CSS reference documentation.
Absolute:
The element is positioned relative to its first positioned (not static) ancestor element
Relative:
The element is positioned relative to its normal position, so "left:20px" adds 20 pixels to the element's LEFT position
Reference:
http://www.w3schools.com/cssref/pr_class_position.asp