0

Is there some cases where I need to use margin in negative value?

if so, please drop any case

31st Dec 2022, 2:18 AM
Ahmad Sulaiman
2 Respostas
+ 2
A positive value for the margin property in CSS will add space around the element, while a negative value will reduce the space around the element or even cause the element to overlap other elements. However, it is not possible to use negative values for the padding property in CSS. The padding property allows you to specify the amount of space that should be added inside an element, between the element's content and its border.
31st Dec 2022, 4:11 AM
Calviղ
Calviղ - avatar
0
Thanks Calvin
31st Dec 2022, 4:24 AM
Ahmad Sulaiman