is -negative margin or padding are invalid CSS aaccording to W3C ?
+4
A:
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
Andrew Hare
2009-10-26 05:05:54
And very useful!
Ryan Doherty
2009-10-26 05:07:26
Indeed. Negative margins are a key element of the Skidoo Layout, for example: http://webhost.bridgew.edu/etribou/layouts/skidoo/
bcat
2009-10-27 00:10:34