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
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.
TrackBack URL for this entry:
Listed below are links to weblogs that reference shorthands in longhand:
still waiting for the xp fix. i saw that there is a 3.01 version available? this app is pretty cool, just wish i didnt have to delete the .sml file everytime, oh well. still worth the small bit of trouble to be able to use it.
Posted by: kenrick | Oct 3, 2003 6:25:41 AM
it's on the way, with lots of other goodes, in 3.5.
Beta test starting soon, stay tuned here.
Posted by: John Allsopp | Oct 3, 2003 9:58:24 AM