- 2
module 4 css
If you give a negative value to the "top" property, in which direction will the box be moved?
7 Answers
+ 1
If you give a negative value to the 'top' property, it will move upwards. That is because the 'top' property creates a space above the element. If the size of that space is positive, as a result the element will move down, but if the size is negative, the element moves up.
https://www.w3schools.com/cssref/pr_pos_top.asp
+ 3
up
+ 1
up
+ 1
Up
0
If you give a negative value to the "top" property, in which direction will the box be moved?
the answer is >>> it will move up /top
0
By giving negative value to top, box will move in upward direction.
0
up