View Full Version : padding shortcut--when to use?
12-11-2006, 04:54 PM
padding: 5px 5px 5px 5px;
what's the advantage of using one over another other than less typing?
12-11-2006, 05:00 PM
Less typing. ;)
Other than that, none really… I mean, you save some bandwidth I guess but unless you're working with a huge stylesheet the difference is negligible. I'm not exactly sure what extra processing the browser requires to compute the rule (i.e. decode "padding: 5px" to mean "padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px;".
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.