At 8:09 AM -0500 9/28/09, T. R. Valentine wrote: >When using shorthand elements such as 'margin' or 'padding', the >order is (IIRC) > 2 values (top & bottom) (left & right) > 4 values (top) (right) (bottom) (left) > >What about three values? > >Also, does anyone have a mnemonic to remember the order? > >-- >T. R. Valentine
<opinion> I find reading other code (as well as mine later) much easier if longhand elements are used. After 40+ years of programming I can say the less cryptic the code, the better it is. This is because of self-documentation -- in short, documentation matters. Contrary to some opinions, shortening css files by a few bytes here, or there, doesn't makes code load any quicker. With today's speeds, there is no significant load-time difference between a verbose css file and a cryptic one. So, there really isn't any reason to make code cryptic. Of course, some may argue that they can recognize shorthand elements with ease, and thus they type less -- but they can't argue that everyone who reviews their code will recognize shorthand elements with the same ease and that should be sufficient reason to dispense with shorthand elements and allow the code to self document. </opinion> Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com ______________________________________________________________________ css-discuss [[email protected]] 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/
