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

1

11

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

Rn answered 26/10, 2009 at 5:4 Comment(0)
Y
21

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

Yemen answered 26/10, 2009 at 5:5 Comment(1)
Indeed. Negative margins are a key element of the Skidoo Layout, for example: webhost.bridgew.edu/etribou/layouts/skidooRemote

© 2022 - 2024 — McMap. All rights reserved.