Negative Values in CSS
Negative Values in CSS
Out of context: Reply #2
- Started
- Last post
- 17 Responses
- raf0
margin - yes, padding - no
How different browsers will render it is another story
- but browser issues should be limited to IE6raf
- How come? (with the padding)Andrew_D
- "Unlike margin properties, values for padding values cannot be negative" http://www.w3.org/TR…raf
- Gotcha, I've never done it, I just didn't know it was frowned upon.Andrew_D
- padding effects the contents of a div whereas marhin effects the positioning. this is why neg margins only.airey