is -negative margin or padding invalid CSS according to W3C?

Jitendra Vyas picture Jitendra Vyas · Oct 26, 2009 · Viewed 8.9k times · Source

is -negative margin or padding are invalid CSS aaccording to W3C ?

Answer

Andrew Hare picture Andrew Hare · Oct 26, 2009

According to Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification - 8.4 Padding properties, negative margin values are valid, negative padding values are not:

Unlike margin properties, values for padding values cannot be negative