1.

Can the value of margin and padding be negative?

Answer»

The value of the margin CSS property can be NEGATIVE. This makes it possible to move the element closer to its TOP or LEFT neighbor, or move its right or bottom neighbor closer to the BORDER. Depending on the value of the position property of the element, the behavior of the negative margin for that element will vary. However, a negative padding value is not considered valid.



Discussion

No Comment Found