Paul said:
> Keep in mind also that directly indicating measurement types
> is always a
> plus, and you can shortcut colors when you are dealing with paired
> sets. Thus
Actually, for zero values, you do not need to specify units of
measurement. I don't know why specifying a unit would help you in those
cases.
> #navigation {
> > background: #336699;
> > float: left;
> > margin: 0 0 0 0 !important; /* original code, this
> will show in
> > mozilla */
> > margin: -5px 0 0 0; /* this will be what shows in IE */
> > }
>
> becomes
>
> #navigation {
> background: #369;
> float: left;
> margin: 0px 0px 0px 0px !important; /* FF */
> margin: -5px 0px 0px 0px; /* IE */
> }
And the above could be shortened to:
margin: 0 0;
the first zero is the pair for top and bottom, the second zero for left
and right.
> However, that said, negative measurements are a generally bad
> idea. If you
> need to push something beyond it's natural location in a
> negative manner,
> you need to rethink that locative in the first place.
Negative measurements are often used to "fix" rounding
errors/inconsistencies in browsers. I didn't look at the page this
thread is referring to, so I don't know what the context is for the -5px
margin.
Regards,
Ron
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/