+ 1

what different between absolute positioning and relatives positioning in css

18th Feb 2019, 1:21 PM
abdul wahab mahmody
abdul wahab mahmody - avatar
2 Answers
+ 2
Absolute uses coordinates of all page(or canvas) to determine position And relative uses the position of supporting block For example: You have some square somewhere in the middle of screen You want to place a smaller square in top-left position Absolute will place this little square in the top-left corner of page And relative will place it in top-left corner of the first square
18th Feb 2019, 3:02 PM
Š”Š¼ŠøтрŠøŠ¹ ŠœŠ°Š·Ń‹Š»Š¾
Š”Š¼ŠøтрŠøŠ¹ ŠœŠ°Š·Ń‹Š»Š¾ - avatar
+ 1
What if there is no square in the middle of screen?
23rd Jul 2020, 5:05 PM
Riyad Rahman [Ļ€Ā©]
Riyad Rahman [Ļ€Ā©] - avatar