On May 12, 2009, at 1:28 PM, Gautam Bhatia wrote:

>  My question was regarding values,Is it a bad practice to
> have negative values in your css file, for example
>
> padding : -5%;

Only some properties accept negative values. Padding is not one of them
<http://www.w3.org/TR/CSS21/box.html#padding-properties>

The following properties take negative values
margin
z-index
top, left, bottom, right
text-indent, word-spacing, letter-spacing
vertical-align
background-position

(CSS3)
outline-offset
box-shadow
text-shadow

Check the spec(s) to make sure.


Philippe
---
Philippe Wittenbergh
http://l-c-n.com/





______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to