Click to See Complete Forum and Search --> : Negative padding value


mattastic
02-18-2005, 03:57 AM
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.

Thanks

the tree
02-18-2005, 04:42 AM
First 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;

Fang
02-18-2005, 05:25 AM
padding is not inherited from it's parent.

Triumph
02-18-2005, 07:47 AM
While you may have a negative value for a margin you can not for padding.

Triumph
02-18-2005, 07:49 AM
From the wc3 css validator:Invalid number : padding -5.0 negative values are not allowed : -5px