- 2

module 4 css

If you give a negative value to the "top" property, in which direction will the box be moved?

9th Dec 2018, 7:14 AM
Angelo Dalmacio
Angelo Dalmacio - avatar
7 Respostas
+ 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
9th Dec 2018, 8:55 AM
Shadow
Shadow - avatar
+ 3
up
5th Nov 2019, 4:04 PM
Davis Clark
Davis Clark - avatar
+ 1
up
29th Jan 2020, 8:41 AM
VISHNUPRIYAN V
VISHNUPRIYAN V - avatar
+ 1
Up
17th Jun 2020, 3:52 PM
Joynal Abdin
Joynal Abdin - avatar
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
4th Nov 2019, 9:33 PM
Najwa Abdu Ziyad
0
By giving negative value to top, box will move in upward direction.
9th Mar 2021, 1:04 PM
Arqum Farooq
Arqum Farooq - avatar
0
up
20th May 2021, 3:45 PM
Attah Gideon
Attah Gideon - avatar