+ 1

What is the difference between relative and absolute path?

20th Jul 2017, 11:08 AM
Shobhit Porwal
Shobhit Porwal - avatar
2 odpowiedzi
+ 3
Ok if you set value left:200px; top:100px; now set to absolute You will see that your content far from left of its parent by 200px and far from top of its parent by 100px now set to relative You will see that your content far from left of its currently position by 200px and far from top of its currently position by 100px
20th Jul 2017, 11:37 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 2
relative means starting from where you are currently...absolute means starting from beginning e.g class/7th is relative and c:/projects/class/7th is absolute
20th Jul 2017, 11:10 AM
Naveed Jeelani Khan
Naveed Jeelani Khan - avatar