Hi,
Would this work on a div that has inheritied a padding value of 5, padding:-5?
I need to remove the padding from a div.
ThanksFirst off you need to put in a unit, % or px, secondly it sounds like your trying to get a specific div to have no padding in which case just use padding:0px;padding is not inherited from it's parent.While you may have a negative value for a margin you can not for padding.From the wc3 css validator:Invalid number : padding -5.0 negative values are not allowed : -5px
Would this work on a div that has inheritied a padding value of 5, padding:-5?
I need to remove the padding from a div.
ThanksFirst off you need to put in a unit, % or px, secondly it sounds like your trying to get a specific div to have no padding in which case just use padding:0px;padding is not inherited from it's parent.While you may have a negative value for a margin you can not for padding.From the wc3 css validator:Invalid number : padding -5.0 negative values are not allowed : -5px