On Sat, 2010-08-14 at 23:58 +0100, Philip Taylor (Webmaster, Ret'd) wrote: > > Nancy wrote: > > Two unrelated questions. > > 1. > > I am working on a website that can be edited by a variety of users using a > > web-based CMS. > > > > The CMS is rewriting inline style property values of zero. > > > > For example, if the inline style is entered as: > > <p style="margin: 0;">whatever text</p> > > > > LiveWhale rewrites it as: > > <p style="margin: 0pt;">whatever text</p> > > > > Before I inform the CMS developers that they need to correct this, I just > > wanted to make sure that I am correct in saying that this is incorrect > > style. > > Is it? > > The doctype they have chosen for the site is XHTML 1.0 Transitional. > > Why should adding a unit make it incorrect ? CSS allows the > simplification of "0<unit>" to "0", but doesn't forbid the > widening of "0" to "0<unit>". 0px = 0pt = 0mm, etc.
I often do this myself, just so I don't have to type the whole line if I ever decide to add/change the values. -- Blessings, David M. ______________________________________________________________________ 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/