What is the difference between relative and absolute? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the difference between relative and absolute?

2nd Dec 2016, 12:00 PM
Mary Chew Jia Yi
Mary Chew Jia Yi - avatar
1 Answer
0
Relative positioning is calculated by the parent of element while absolute positioning is calculated to flow of the entire page. Static positioning is calculated according to screen.
2nd Dec 2016, 12:13 PM
Ondřej Doněk
Ondřej Doněk - avatar