Closed DanielaValero closed 10 years ago
This is because the box model doesn't support negative padding. set-style!
essentially just calls something like el.style.setProperty('padding-top', '-3px').
Here's a good explanation and alternative method to using negative padding: http://stackoverflow.com/a/4974113
Thanks for the report!
Hello,
I am trying to do this:
(dommy-attr/set-style! el :padding-top "-3px")
but it doesn't take the negative value, it works only for positive ones, tried as well with margin-top and it worked, so I switched to margin, just wanted to report this behaviour