October 02, 2003

shorthands in longhand

CSS has a nice feature that allows you to use shorthands for some properties, like margin, padding and font. In fact it is a little more complicated than that, because the font shorthand is both a shorthand, and allows you to do things that no other property can let you do, namely to set the font to a system font.

Actually, I'm really not sure that shorthands are a nice feature, both from a selfish point of view in that they complicate my life having to handle them, and because my design philosophy is more "there should be only one way to skin a cat" not "hey if 1 way is cool, 5 must be five times cooler".

But, as usual, I digress.

Anyway, today I am working to have complete transparent support for shorthands in Style Master.

What does that mean?

OK, suppose you like using the margin shorthand. Instead of

margin-top: 1em; margin-left 2em; margin bottom: 1em; margin-right: 2em

you prefer

margin: 1em 2em

then Style Master's editors will work it out and take on the correct values.

You will also be able to choose an option/preference to always use shorthands, in which case, Style Master will take editor values and covert them into the correct shorthand in your style sheet.

Just a little something for the power users out there.

October 2, 2003 in what I'm working on | Permalink | Comments (2) | TrackBack