path: home / archives / 2003 / 09 / 01 / cssshortcuts
Everyone likes shortcuts. It's a fact of life, the shortest route is (nearly) always taken as it requires the least effort and saves you time. This is why I am constantly amazed when I come across people using CSS longhand when it's not needed. For example people often carefully fill out all 6 of the #hex digits for colours when only 3 are needed (web safe only) e.g. #336699 instead of #369 -- the multiple digits are just dropped for the shorthand. Here are another few ways you can cut down on your CSS file size and save a bit of time:
margins or padding for that matter) individually or not combining font-size, font-family and line-height into the font attribute.copyright 2003-2004 (inclusive) zlog, all rights reserved. view the editorial policy.